checkPermission (function)

Purpose:

Checks if a user has a permission level

See Also:

checkMenu (function)
hasPerm (function)

Example:

checkPermission(2)

Data Type(s):

checkPermission(permission_level)

Location:

users/helpers/permissions.php

Details:

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";
} ?>