Hi,  

I've been trying to come up with a simple method of trying to populate a
drop down/select list with the list of registered roles but obviously
leaving out 'higher powered' roles to the logged in user. 

For example, if my roles were:
Guest
  +- Member
        +- Manager
              +- Admin

And the scenario was:
The currently logged in user was a Manager, and they were to create another
user. 
The manager would assign a role to the newly created user but not be allowed
to create an Admin, and preferably wouldn't even see the Admin role option
in the drop down list.

I can do this easily if the roles were in a db table with role_parent_id
column, but how would I go about it from the results returned by the
$acl->getRegisteredRoles() ?
-- 
View this message in context: 
http://old.nabble.com/Role-Permissions-with-Zend_Acl-tp26159912p26159912.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to