Thursday, December 30, 2010

Re: DbAcl Failed ARO/ACO node lookup (SOLVED accidentally)

Hi Jon,

DbAcl and iniAcl

Which one do we commonly use ?

Regards,
Maxim


On Dec 30, 5:48 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
> hi John,
>
>
>
> > ~~ERROR msg~~
>
> > Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
> > permissions check.  Node references:
> > Aro: User::44
> > Aco: Post [CORE\cake\libs\controller\components\acl.php, line 273]
>
> > ~~
> > The error is shown above. I solved this accidentally, maybe someone
> > could rectify if my solution is correct?
>
> > The full story how I ended up with this error can be read here:
> >http://groups.google.com/group/cake-php/browse_thread/thread/478daa30...
>
> > Suggestion to repopulate the Acl tables was not attempted before I
> > could, I solved it when reading cookbook here:
> >http://book.cakephp.org/view/1244/Defining-Permissions-Cake-s-INI-bas...
>
> > Extracted from cookbook:
> > ~~~~~~
> > //Change these lines:
> > Configure::write('Acl.classname', 'DbAcl');
> > Configure::write('Acl.database', 'default');
>
> > //To look like this:
> > Configure::write('Acl.classname', 'IniAcl');
> > //Configure::write('Acl.database', 'default');
> > ~~~~~~
>
> > Suggestion(s) ?
>
> The reason your fix works is because (I'm assuming anyway) you have
> some data in your acl.ini.php file. This was what people meant by
> 'populate' the acl tables, you have to have data for both the aco and
> aro tables:
>
> aco = controller/Method
> aro = user or group id (usually!)
>
> If you followed the instructions inhttp://book.cakephp.org/view/1549/An-Automated-tool-for-creating-ACOs
> andhttp://book.cakephp.org/view/1550/Setting-up-permissionsyou'd be
> in the same position with dbAcl as you are with iniAcl, however
> depending on your requirements iniAcl may be perfectly adequate.
>
> hth
>
> Jon
>
> --
> jon bennett -www.jben.net- blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

No comments: