I use Zend_Navigationand try to integrate it with Zend_Acl. Each page in the navigation has an attribute privilege. I cannot determine how to define several privileges for one page.
Use Case: A page designed to manage users. I want to display this page (in navigation) if the current subscribed user role has add, editor deleteprivileges on the resource Users.
An example entry in XML navigation:
<admin_users>
<label>Users</label>
<route>default</route>
<controller>admin</controller>
<action>users</action>
<resource>Users</resource>
<privilege>add,edit,delete</privilege>
</admin_users>
Using a comma separated list as described above does not give the desired behavior.
UPDATE
, Zend_Navigation_Page . - ?
public function setPrivilege($privilege = null)
{
$this->_privilege = is_string($privilege) ? $privilege : null;
return $this;
}