Quote:
Originally Posted by Dax IX
Here's what I have now for my permissions statement:
PHP Code:
$age = calculate_age($userinfo);
// access permissions
if ((!is_member_of($vbulletin->userinfo, 5, 6, 7)) OR (!$age))
{
// give no permission unless in usergroup x, y, or z
print_no_permission();
}
|
It seems like that should be AND. Like if they're not an admin or moderator and they are younger than 18, then no permission.