04-30-2017, 07:17 PM
Hi Was trying to implement the following:
on a json output php page::
if(!hasPerm([4],$user->data()->id)){
//echo ('2,3,4');
die("NO RIGHTS TO SEE THIS");
}
I noticed through testing access to the page that the $master_account was NULL when used by the hasPerm function on line 767
so I added global $master_account; just under global $user;
Seems to work now
on a json output php page::
if(!hasPerm([4],$user->data()->id)){
//echo ('2,3,4');
die("NO RIGHTS TO SEE THIS");
}
I noticed through testing access to the page that the $master_account was NULL when used by the hasPerm function on line 767
so I added global $master_account; just under global $user;
Seems to work now