Permissions are all bitfields...
Look at cache_permissions funciton in function.php ... after the function call, all the user's permissions are stored in $vbulletin->userinfo['permissions'] array ...
You will then have to compare the users value with the default bitfields which are stored serialized in the datastore and compiled in class_core.php into the vbulletin registry.
|