- 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.
- Omeka_Acl_Assert_Ownership::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 –
- Omeka_Acl_Assert_Ownership::_userOwnsRecord($user, $record)¶
Check whether the user owns this specific record.
- $user –
- $record –