Skip to content
Snippets Groups Projects
Commit 46d6ee7f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Check user #1 (sysop) exemptions and restrictions against expectations

parent 6d44eeed
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -37,6 +37,12 @@ var tests = { ...@@ -37,6 +37,12 @@ var tests = {
output.push("User #1 is not a sysop"); output.push("User #1 is not a sysop");
if(usr.security.restrictions & UFLAG_G) if(usr.security.restrictions & UFLAG_G)
output.push("User #1 should not have the (G)uest restriction"); output.push("User #1 should not have the (G)uest restriction");
if(usr.security.restrictions & UFLAG_L)
output.push("User #1 should not have the (L)ogon Once/Day restriction");
if(!(usr.security.exemptions & UFLAG_T))
output.push("User #1 should have the (T)ime exemption");
if(!(usr.security.exemptions & UFLAG_L))
output.push("User #1 should have the (L)ogon exemption");
if(system.operator.toLowerCase() != usr.alias.toLowerCase() if(system.operator.toLowerCase() != usr.alias.toLowerCase()
&& system.operator.toLowerCase() != usr.name.toLowerCase()) && system.operator.toLowerCase() != usr.name.toLowerCase())
output.push(format("User #%-4u name (%s) and alias (%s) does not match system operator (%s)" output.push(format("User #%-4u name (%s) and alias (%s) does not match system operator (%s)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment