Allow disabling the use of adding networks for non admins

Closes #122
This commit is contained in:
Kyle Fuller committed 2012-02-15 16:27:47 +00:00
1 parent b9ff3ddcb1
commit 8863d853c9
5 files changed
+36

No files matched your search

+7
View File
@@ -700,6 +700,13 @@ public:
}
}
} else {
#ifndef ENABLE_ADD_NETWORK
if (!spSession->IsAdmin()) {
WebSock.PrintErrorPage("Permission denied");
return true;
}
#endif
Tmpl["Action"] = "addnetwork";
Tmpl["Title"] = "Add Network for User [" + pUser->GetUserName() + "]";
Tmpl["IRCConnectEnabled"] = "true";