
07-10-2015, 06:35 PM
|
 |
|
|
Join Date: Jun 2013
Location: Thessaloniki, Greece
Posts: 511
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by kh99
They're bitfields, not serialized values, so if you have the permission number for a group (and it could very well be 3), then you can check it by using
PHP Code:
if ($vbulletin->usergroupcache[12]['gallery'] & $vbulletin->bf_ugp['gallery']['vote'])
{
// they have vote permission
}
I don't know if $vbulletin->usergroupcache[12]['gallery'] is right or not. It's not clear from what's posted above.
|
Works !! Thank you.
|