Skip to content
Snippets Groups Projects
Commit 93f34cf6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #232 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment