SWRoleplay.com
Fri 14th Jun '02, 11:36am
I was trying to find the global variable for a user's group so that I can set permissions in my admin CP. My board has certain people that only work on graphics and can access the CP for styles and templates, and I wanted to limit them to that.
I have tried $bbuserinfo['usergroup'] and $bbuserinfo['usergroupid'] and haven't had any luck.
The complete code I have been trying is below:
if ($bbuserinfo['usergroup'!=14] AND $bbuserinfo['usergroup'!=6])
{show_nopermission(); exit; }
I have tried $bbuserinfo['usergroup'] and $bbuserinfo['usergroupid'] and haven't had any luck.
The complete code I have been trying is below:
if ($bbuserinfo['usergroup'!=14] AND $bbuserinfo['usergroup'!=6])
{show_nopermission(); exit; }