Restricting page to certain UIDs 06-23-2015, 02:51 AM
#1
So this is pretty basic nothing to advanced. This will work for usergroups and user ids.
Usergroup:
UID:
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();
}