mirror of https://github.com/calzoneman/sync.git
Exclude siteadmins from channel limit (resolves #508)
This commit is contained in:
parent
bfe76dae0e
commit
9a4237cd00
|
@ -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 " +
|
||||
|
|
Loading…
Reference in New Issue