This is an old UserCake function that checks if the logged in user has a certain permission level. This automatically returns true if the user's id is 1
This is an old UserCake function that checks if the logged in user
has a certain permission level.
This automatically returns true if the user's id is 1
<?php if(checkPermission(2)){
echo "The user has permission level 2";
} ?>