is_allowed
— Check whether the current user has a give permission.
Summary
- is_allowed($resource, $privilege)
Check whether the current user has a give permission.
- Parameters:
$resource (
string|Zend_Acl_Resource_Interface
) – The name of a resource, or a record implementing Zend_Acl_Resource_Interface$privilege (
string|null
) – The privilege to check for the resource.
- Returns:
bool