I am using a PHPfox script and need to follow their syntax but am wondering how to restrict access to a page. The following code restricts access for only logged in users:
public function process()
I want to restrict it also so that the user must be logged in and must also be a member of a particular user group (let's say usergroups 1,2 and 3)
Here is how I got the value of the user's user group if they are logged in:
$username2 = Phpfox::getUserBy('user_group_id');
Can someone tell me how to put both of these together so that the user must be logged in and be a member of this page also?