mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Exclude siteadmins from channel limit (resolves #508)
This commit is contained in:
parent
bfe76dae0e
commit
9a4237cd00
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue