change
PHP Code:
if ($edituser['usergroupid']!=2 or $ismod) {
to
PHP Code:
if ($edituser['usergroupid']!=2 or $is_mod) {
and
PHP Code:
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid");
to
PHP Code:
$is_mod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid");
please make sure you get the right one as there is an identical one that uses $ismod and this is what causes problem, I had two things with the same variable, i don't recommend commenting it out as this allows mods to edit the access masks of anyone, including their own.