Commit 93f34cf6 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

SYSOP ARS keyword now applies to target user, not necessarily the user online

Altere reported that listing users with access to a sub-board with an Access
Requirement String (ARS) set to "SYSOP" would list all users as having access.
The problem was the use of the "SYSOP" macro which checks the *current* user
online (not the subject of the ARS check). Fixed by not using the SYSOP macro.
parent 5834550c
Pipeline #232 passed with stage
in 18 minutes and 3 seconds
......@@ -269,7 +269,7 @@ bool sbbs_t::ar_exp(const uchar **ptrptr, user_t* user, client_t* client)
else result=!_not;
case AR_SYSOP:
if(user->level < SYSOP_LEVEL && !(sys_status & SS_TMPSYSOP))
else result=!_not;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment