08-25-2017, 10:36 PM
Try this...
checkMenu only allows you to put one permission level. hasPerm allows you to put a bunch [2,3,4].
Code:
if($user->isLoggedIn() && hasPerm([2],$user->data()->id)){
checkMenu only allows you to put one permission level. hasPerm allows you to put a bunch [2,3,4].