- class Omeka_Acl_Assert_Ownership¶
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, Zend_Acl_Resource_Interface $resource, $privilege)¶
Assert whether or not the ACL should allow access.
- $acl (Zend_Acl) –
- $role (Zend_Acl_Role_Interface) –
- $resource (Zend_Acl_Resource_Interface) –
- $privilege (unknown) –
- _userOwnsRecord($user, $record)¶
Check whether the user owns this specific record.
- $user (unknown) –
- $record (unknown) –