2008年11月6日星期四

Re: [fw-auth] Zend_ACL->isAllowed() can the role be an array

Are you calling parent::isAllowed(...) in the foreach loop? How do you determine if a role is denied by default versus specifically denied with $acl->deny()?

-Hector


On Thu, Nov 6, 2008 at 2:52 PM, Tim Nagel <tim@nagel.com.au> wrote:
We ended up writing an extension to the ACL system to allow multiple roles. We wrote it so that deny takes precedence over allow.
 
Just subclassed Zend_Acl to Xx_Acl and overrode the isAllowed function to do a foreach() if there was more than one role.
 
 
Tim

没有评论: