public hasPermission ( string $permission, string $user, integer $perm, string $creator = null ) : boolean | ||
$permission | string | The permission to check. |
$user | string | The user to check for. |
$perm | integer | The permission level that needs to be checked for. |
$creator | string | The creator of the event |
return | boolean | Whether the user has the specified permissions. |