Purpose
Check if a user has a permission level
Location
users/helpers/permissions.php
See Also:
hasPerm (function)
Parameters
# |
Parameter |
Data Type |
Required |
Description |
1 |
$permission |
|
Yes |
undocumented |
2 |
$id = 0 |
|
Yes |
undocumented |
Example
checkMenu(2)
Further Documentation:
This poorly named function comes all the way back from the UserCake days.
It was primarily used to see if a user could see a menu item
It has primarily been replaced by hasPerm which accepts an array
This function returns true or false