Yes it will
--------------- Added [DATE]1250445420[/DATE] at [TIME]1250445420[/TIME] ---------------
Quote:
Originally Posted by Lynne
Try changing this:
Code:
if (!$vbulletin->userinfo['userid']) print_no_permission();
To something more like this:
Code:
if (!$vbulletin->userinfo['userid'] OR !is_member_of($bbuserinfo, 5, 6, 7)) print_no_permission();
That will give an error if the user is not logged in or if the member is not a member of usergroups 5,6, or 7.
|
Quote:
Originally Posted by ilrglen
Will this then send them to the 'no permission page' or another error page?
|
Actually, to break down the code Lynne posted a little more,
The part
print_no_permission(); spits out a "No Permission" error for the user if they are not registered or in the usergroups 5,6,7 which would obviously be this part of the code:
if (!$vbulletin->userinfo['userid'] OR !is_member_of($bbuserinfo, 5, 6, 7))