Commit 93f34cf6 authored by Rob Swindell's avatar Rob Swindell

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;
break;
case AR_SYSOP:
if(!SYSOP)
if(user->level < SYSOP_LEVEL && !(sys_status & SS_TMPSYSOP))
result=_not;
else result=!_not;
break;
......
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