PDA

View Full Version : Global Usergroup Variable?


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; }

Chen
Fri 14th Jun '02, 11:46am
if ($bbuserinfo['usergroupid'] != 14 and $bbuserinfo['usergroup'] != 6) {
show_nopermission();
}
For checking the usergroup ID.

For check specific permission:
if (!$permissions['permissionName']) {
show_nopermission();
}

SWRoleplay.com
Fri 14th Jun '02, 11:59am
Firefly saves me again! :) Thanks!!

How would I go about setting the permission one? Or is that forum permissions? :confused: