Hi Stefano, I've seen your slides reagarding your question: Instant ACLs with Zend Framework 2 <http://de.slideshare.net/stefanovalle/instant-acls-with-zend-framework-2#>
Unfortunately I could not make the assertions work when following your code. Instead of your Conference I have a Doctrine Entity named Contract. But somehow the Assertion does not seem to picked up by *BjyAuthorize*. Instead I get a "regular" *ACL* error: /Catchable fatal error: Object of class Application\Entity\Contract could not be converted to string in /home/../zendframework/library/Zend/Permissions/Acl/Acl.php on line 288/ Looks like ACL is looking for the /getResource() / getResourceId()/ method of a class that implements a roleprovider. How did you achieve it? ----- http://www.webdevilopers.net https://www.facebook.com/webdevilopers http://www.twitter.com/webdevilopers -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/User-authorization-check-using-BjyAuthorize-on-Service-layer-tp4661555p4662109.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
