$hasPerms
Checks if user has all of the given permissions. Returns true
or false
.
Usage:
$hasPerms[userID;perm1;perm2;...]
- userID - User you want to check for permissions.
- perm N - You can add as many permissions as needed. The available permissions are here: Permissions List.
Example
Using $hasPerms
How to use $hasPerms. Keep in mind that only if the user does have all of listed permissions, true will be returned.
Suggestion
To make code stop if the user doesn't have the needed permission, you can check out $onlyIf. For multiple actions, check $if.