Returns true or false depending on if a user has the given permission level. Always returns true for user id #1.
Example
$permission = checkPermission(2);
Further Documentation:
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
if(checkPermission(2)){
echo "The user has permission level 2";
}