valugi wrote:
I read something about assertions breaking when inheritance is used and I
think this could be the real problem. Because otherwise I did understand the
mechanisms of Assertions.
http://framework.zend.com/issues/browse/ZF-1722

I notice in the comment at the end of the description it says:
"you can notice the problem in the 3rd case where when trying to determine if the parent has the IQ to play with the toy, the parent object is not passed to the assertion."

I've also had a similar issue (see this mailing list over the last week).

I've posted my report for this in:
http://framework.zend.com/issues/browse/ZF-4460

The problem in this case stems from the get() method of the Acl replacing the passed in Resource object with the generic instance saved during ACL construction.

I'd imagine something similar is happening with the roles check (although it wont be quite as obvious).

Col


--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

Reply via email to