PDA

View Full Version : how to find usergroup


clamcrusher
01-27-2005, 06:35 PM
what variable(if any) is the current users usergroup stored in?

basically i want to do something like this


<?php

if ($user['usergroup'] == 'admin') {
// do something
}

?>


btw- im refering to the user who is making the page request. im not taling about looping through the results of some db query.

thanks.

Andreas
01-27-2005, 07:26 PM
if ($bbuserinfo['usergroupid'] == 6) {
// do something
}

clamcrusher
01-27-2005, 09:20 PM
thats it, thanks