2008年11月6日星期四

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

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

没有评论: