WorldCraft
09-24-2012, 11:10 PM
Hello, I'm trying to deny access to a custom script for certain usergroup/s.
Even though I am specifying specific usergroup ID's, all usergroups are being denied access.
require_once('./global.php');
if (!is_member_of($vbulletin->bbuserinfo, 19) OR !is_member_of($vbulletin->bbuserinfo, 20))
{
print_no_permission();
}
Even though I am specifying specific usergroup ID's, all usergroups are being denied access.
require_once('./global.php');
if (!is_member_of($vbulletin->bbuserinfo, 19) OR !is_member_of($vbulletin->bbuserinfo, 20))
{
print_no_permission();
}