2010年3月1日星期一

[fw-auth] Re: ACL... but completely different

I must be missing something with the assertions. The example given was just
testing an IP address which can be determined by a global variable, but if I
need to test if the user owns the blog post, surely I must pass in the user
id and the id of the blog post? Is there some way to pass parameters to the
assertions? I was thinking something like this would be convenient:

$acl->isAllowed('role', 'resource', 'privilege', $params);

Or am I supposed to extend Zend_Acl_Resource so that I can set the id here?
--
View this message in context: http://n4.nabble.com/ACL-but-completely-different-tp1299970p1573971.html
Sent from the Zend Auth mailing list archive at Nabble.com.

没有评论: