On Wednesday 22 Dec 2010 12:11:08 Sergio Rinaudo wrote:
> Hi,
> 
> you don't need assertion to check if a role has certain permission to a
> resource,
> 
> just deny it.
> 
> The official documentation explains the use of ACL pretty well with
> examples
> 
> 
> http://framework.zend.com/manual/en/zend.acl.refining.html
> 
> 
> Bye
> 
> 
> Sergio

When you need to check whether a user is owner of the project before it can 
add lists to that project, you need the assertions.

If you pass your user (instanceof Acl_Role_Interface) and project (instanceof 
Acl_Resource_Interface) to the ACL, you're able to check the project's owner. 
Ralph created a blog post for this dynamic assertion behaviour: 
http://ralphschindler.com/2009/08/13/dynamic-assertions-for-zend_acl-in-zf

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

Reply via email to