Giving Zend Navigation Pages Multiple ACL Privileges
Posted
by Sonny
on Stack Overflow
See other posts from Stack Overflow
or by Sonny
Published on 2010-03-15T16:49:58Z
Indexed on
2010/03/16
6:16 UTC
Read the original article
Hit count: 539
I'm using Zend_Navigation
and am trying to integrate it with Zend_Acl
. Each page in the navigation has a privilege
attribute. What I can't determine is how to define multiple privileges for a single page.
Use case: A page that is for managing users. I want to display that page (in navigation) if the current signed in user's role has add
, edit
, or delete
privileges on the Users
resource.
Example entry in the navigation XML:
<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 above doesn't lend the desired behavior.
© Stack Overflow or respective owner