If you are trying to implement usercake (AWSOME), and you need to check if a user is in a group, here is the code:
if (!$loggedInUser->isGroupMember($admin_group_id) ){
echo "Admin only access";
die();
}
have fun
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment