From 9a4237cd00fb418619ee9633eee63d7048ea955a Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 12 Dec 2015 17:03:42 -0800 Subject: [PATCH] Exclude siteadmins from channel limit (resolves #508) --- src/web/account.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/account.js b/src/web/account.js index 627d341e..25e57463 100644 --- a/src/web/account.js +++ b/src/web/account.js @@ -257,7 +257,8 @@ function handleNewChannel(req, res) { 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", { channels: channels, newChannelError: "You are not allowed to register more than " +