is_allowed¶
Summary¶
- is_allowed($resource, $privilege)¶
Check the ACL to determine whether the current user has proper permissions.
is_allowed('Items', 'showNotPublic');
Will check if the user has permission to view Items that are not public.
Parameters: - $resource (unknown) –
- $privilege (unknown) –