more optimizations, remove WTVIRC for now, upgrade test.js
This commit is contained in:
@@ -2,7 +2,7 @@ const minisrv_service_file = true;
|
||||
let errpage;
|
||||
|
||||
|
||||
if (session_data.user_id != 0) errpage = wtvshared.doErrorPage(400, "You are not authorized to add users to this account.");
|
||||
if (session_data.user_id !== 0) errpage = wtvshared.doErrorPage(400, "You are not authorized to add users to this account.");
|
||||
else if (session_data.getNumberOfUserAccounts() > minisrv_config.config.user_accounts.max_users_per_account) errpage = wtvshared.doErrorPage(400, "You are not authorized to add more than " + minisrv_config.config.user_accounts.max_users_per_account + ` account${minisrv_config.config.user_accounts.max_users_per_account > 1 ? 's' : ''}.`);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user