aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorVictor Melnik <annimon119@gmail.com>2023-12-31 22:19:07 +0100
committerGitHub <noreply@github.com>2024-01-01 00:19:07 +0300
commit7b2ca47c231ce4960aa4d53b73975b0c43d48012 (patch)
tree63f87d161b0d24fd67a9ec1fcc3298c07156378c /build
parent452ac109e0a1309ff0e7212de271b2b6d3641353 (diff)
Ignore video limit per user for admins (#47)
Diffstat (limited to 'build')
-rw-r--r--build/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/server.js b/build/server.js
index f8e4d0e..0d1a03e 100644
--- a/build/server.js
+++ b/build/server.js
@@ -4363,7 +4363,7 @@ server_Main.prototype = {
this.serverMessage(client,"totalVideoLimitError");
return;
}
- if(this.config.userVideoLimit != 0 && this.videoList.itemsByUser(client) >= this.config.userVideoLimit) {
+ if(this.config.userVideoLimit != 0 && ((client.group & 8) == 0) && this.videoList.itemsByUser(client) >= this.config.userVideoLimit) {
this.serverMessage(client,"videoLimitPerUserError");
return;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage