Quote:
Originally Posted by xtremeoff-road
Maybe copy the code for the superadmin check and change it to look at the supermod usergroup?
|
Does this look right?
Code:
// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s', $vbulletin->config['SpecialUsers']['supermoderators'], -1, PREG_SPLIT_NO_EMPTY)) ) {
rpm_print_stop_back("You don't have permission to access this page.");
}