Assertion to take account of “All” and “Self” sub-permissions for records.
A common use is the “edit” and “delete” permissions for Items and other “ownable” records.
assert(Zend_Acl $acl, Zend_Acl_Role_Interface $role = null, Zend_Acl_Resource_Interface $resource = null, $privilege = null)¶
Assert whether or not the ACL should allow access.
- $acl (Zend_Acl) –
- $role (Zend_Acl_Role_Interface) –
- $resource (Zend_Acl_Resource_Interface) –
- $privilege –
Check whether the user owns this specific record.
- $user –
- $record –