PDA

View Full Version : Using Usergroup permissions in external files


pgowder
04-24-2002, 12:07 PM
I'm trying to create some pages for my moderators to use.

I know how to check to make sure the user is logged in. How do I then only grant access to a usergroup? Or a particular user? Or a couple of users?

Admin
04-24-2002, 12:09 PM
if ($bbuserinfo['usergroupid'] == 2) {
// blabla
}
Will only let users from usergroup 2.

Sparkz
04-24-2002, 04:43 PM
And then I guess

if ($bbuserinfo['userid'] == 2 || $bbuserinfo['userid'] == 3) {
// blabla
}


Or something, I guess :)