i feel stupid now, i just noticed a bug
sorry about this
change the following
look for
PHP Code:
$edituser=$DB_site->query_first("SELECT username,userid,usergroupid FROM user WHERE userid=$userid");
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid");
change the $ismod to $is_mod here, it only needs to be done once and only at that point, then change the following.
PHP Code:
if ($edituser['usergroupid']!=2 or $ismod) {
echo "<p>You may not edit access for someone who is not a normal registered user!</p>";
$stop=1;
}
change the $ismod to $is_mod i'd never noticed this as i've always used supermod and admin to test this never normal moderator. I recommend that all people update this to deal with this problem.
I just updated the main file at the top.