It's telling you that there is no node in your Aro that is identified
by the model 'User' that has a foreign key of '1'.

Check your ARO table and make sure it matches the user that you're
logging in with.

You may need to initialize the ARO first if your users were created
before you followed the step at 
http://book.cakephp.org/view/645/Acts-As-a-Requester

I have a simple function in my User model that initializes the Aro:

    /**
     * Initialize the users in the database ...
     *
     */
    function initDB() {

        // Get all of the users
        $users = $this->User->find('all');

        // Loop through them ...
        foreach($users as $user) {
            // Build the ARO
            $this->save_aro($user);
        }
  }

On Dec 24, 6:49 am, Christian <[email protected]> wrote:
> Hi,
>
> I'm trying to use ACL in my application, I have pretty much followed
> this 
> tutorialhttp://book.cakephp.org/view/641/Simple-Acl-controlled-Application
> to get my application up and running, however, when I visit any of the
> pages that are supposed to be protected, I get this error:
>
> Warning (512): AclNode::node() - Couldn't find Aro node identified by
> "Array
> (
>     [Aro0.model] => User
>     [Aro0.foreign_key] => 1
> )
> " [CORE/cake/libs/model/db_acl.php, line 191]
>
> Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
> permissions check.  Node references:
> Aro: Array
> (
>     [User] => Array
>         (
>             [id] => 1
>             [group_id] => 1
>             [username] => csueiras
>             [email] => [email protected]
>             [fullname] => Christian A. Sueiras Figueroa
>             [contact_phone] => 787-348-8032
>             [created] => 2008-12-18 16:34:07
>         )
>
> )
>
> Any help will be greatly appreciated. Thanks and happy holidays!
>
> Christian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to