Wednesday, September 21, 2011

2.0 AclNode not finding proper model for Aro

I installed a fresh copy of 2.0.0-RC2 and set up a simple
UsersController and Model, and enabled Auth and Acl Components. I can
log in, but when trying to access any page requiring an Acl->check() I
get the following error.

Warning (512): AclNode::node() - Couldn't find Aro node identified by
"Array
(
[Aro0.model] => id
[Aro0.foreign_key] => 1
)
" [CORE/Cake/Model/AclNode.php, line 179]

The Aro model should be User.

A similar ticket was reported in Lighthouse back in May and supposedly
fixed:
http://cakephp.lighthouseapp.com/projects/42648/tickets/1749-cakephp-20-auth-user-breaks-acl-lookups-when-auth-authorize-is-set-to-actions

I tried setting $this->Auth->authorize to crud and actions and got the
same result.

Any clue what I might be missing?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate