![]() |
Permission for specific Usergroup
Hello,
Does anybody knows the syntax to get a specific permission for a specific usergroup (not for the active user). eg the code below returns True/False for the Permission "Vote" in "Gallery" for the active user. PHP Code:
Thank you |
Have you tried looking at the array:
PHP Code:
|
Quote:
I think that is something about "unserialize" but don't remember it. Have used it 5 years ago. Long time to remember it. |
Quote:
Hopefully someone here knows, as I would also be interested in knowing how that works. :D |
Quote:
|
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:
I don't know if $vbulletin->usergroupcache[12]['gallery'] is right or not. It's not clear from what's posted above. |
Quote:
|
All times are GMT. The time now is 06:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|