Checks if specified resource is allowed
public isAllowed ( integer $resourceId, string $permissionId = null ) : boolean | null | ||
$resourceId | integer | The ID of the resource. |
$permissionId | string | optional The ID of the permission associated with resource. |
Résultat | boolean | null | Returns true if access is allowed. If resource or permission isn't overridden it returns null. |