$hasAnyPerm
Checks if a user has one of the given permissions. Returns true
or false
.
Usage
$hasAnyPerm[userID;permission1;permission2;...]
- userID - (Optional) default value:
$authorID
. If not included or left empty, $authorID will be used. - permission N - You can add as many permissions as needed. The available permissions are here: Permissions List.
Example
Using $hasAnyPerm
How to use $hasAnyPerm without user argument. Keep in mind that if the user does have only one 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.