Exclude siteadmins from channel limit (resolves #508)

This commit is contained in:
calzoneman 2015-12-12 17:03:42 -08:00
parent bfe76dae0e
commit 9a4237cd00
1 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,8 @@ function handleNewChannel(req, res) {
return; return;
} }
if (channels.length >= Config.get("max-channels-per-user")) { if (channels.length >= Config.get("max-channels-per-user") &&
req.user.global_rank < 255) {
sendJade(res, "account-channels", { sendJade(res, "account-channels", {
channels: channels, channels: channels,
newChannelError: "You are not allowed to register more than " + newChannelError: "You are not allowed to register more than " +