Checks if current user has specified permission or not.
- Full name:
current_user_can - Defined in:
cms/core/Shared/Helpers/auth.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$perm |
string | Permission to check for. |
$ruleParams |
array | (Optional) Other parameters to use for checking |
| based on a rule. |
Return Value
bool
Return true if permission matches or false otherwise.