Skip to content

Commit

Permalink
Ignore video limit per user for admins (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Dec 31, 2023
1 parent 452ac10 commit 7b2ca47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/server/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class Main {
serverMessage(client, "totalVideoLimitError");
return;
}
if (config.userVideoLimit != 0
if (config.userVideoLimit != 0 && !client.isAdmin
&& videoList.itemsByUser(client) >= config.userVideoLimit) {
serverMessage(client, "videoLimitPerUserError");
return;
Expand Down

0 comments on commit 7b2ca47

Please sign in to comment.