Login Register






Restricting page to certain UIDs filter_list
Author
Message
Restricting page to certain UIDs #1
So this is pretty basic nothing to advanced. This will work for usergroups and user ids.

Usergroup:
PHP Code:
if(!in_array($mybb->user['usergroup'], array(3,4,6,8,9))) { error_no_permission();}


UID:
PHP Code:
if(!in_array($mybb->user['uid'], array(3,4,6,8,9))) { error_no_permission(); }

Reply