...
 
Commits (1)
  • Rob Swindell's avatar
    SYSOP ARS keyword now applies to target user, not necessarily the user online · 93f34cf6
    Rob Swindell authored
    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.
    93f34cf6
......@@ -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;
......