title: CakePHP Acl controlled application failed ARO/ACO lookup - Permissions not registering
body: <p>I am building an profile based application. I am attempting to use the simple acl controlled application tutorial found here: <a href="http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html" rel="nofollow">http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html</a>, to create my groups and permissions. I have run into some problems getting the permissions to function when logged in as different users. I have an admin, manager, and user group. I have set ACOs and AROs as well as added permissions to each group. Here is my </p>
  
  <pre><code>class AppController extends Controller {
  
      public $components = array(
          'Acl',
          'Auth'=&gt;array(
              'loginRedirect'=&gt;array('controller'=&gt;'users', 'action'=&gt;'index'),
              'logoutRedirect'=&gt;array('controller'=&gt;'users', 'action'=&gt;'index'),
              'authError'=&gt;'You cannot access that page',
              'authorize'=&gt;array('actionPath' =&gt; 'controllers')
          ),
          'Session'
      );
  
      public function isAuthorized($user) {
          return true;
      }
  
      public function beforeFilter() {
          $this-&gt;Auth-&gt;authorize = array(
              'Actions' =&gt; array(
                  'userModel' =&gt; 'User',
                  'actionPath' =&gt; 'users'
              )
          );
  
          $this-&gt;Auth-&gt;allow('display');
  
          $this-&gt;set('logged_in', $this-&gt;Auth-&gt;loggedIn());
          $this-&gt;set('current_user', $this-&gt;Auth-&gt;user());
  
      }
  
  }
  </code></pre>
  
  <p>UserController.php</p>
  
  <pre><code>class UsersController extends AppController {
  
      public function beforeFilter() {
          parent::beforeFilter();
          $this-&gt;Auth-&gt;allow('view');
      }
  
  
  
      public function login() {
          if ($this-&gt;request-&gt;is('Post')) {
              if ($this-&gt;Auth-&gt;login()) {
                  $this-&gt;redirect($this-&gt;Auth-&gt;redirect());
              } else {
                  $this-&gt;Session-&gt;setFlash('Your username/password combination was incorrect');
              }
          }
      }
  
      public function logout() {
          $this-&gt;redirect($this-&gt;Auth-&gt;logout());
      }
  </code></pre>
  
  <p>The error that I am getting right now is:</p>
  
  <pre><code>Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references:
  Aro: Array
  Permission::check() - CORE/Cake/Model/Permission.php, line 94
  DbAcl::check() - CORE/Cake/Controller/Component/Acl/DbAcl.php, line 73
  AclComponent::check() - CORE/Cake/Controller/Component/AclComponent.php, line 109
  ActionsAuthorize::authorize() - CORE/Cake/Controller/Component/Auth/ActionsAuthorize.php, line 40
  AuthComponent::isAuthorized() - CORE/Cake/Controller/Component/AuthComponent.php, line 412
  AuthComponent::startup() - CORE/Cake/Controller/Component/AuthComponent.php, line 336
  ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 132
  call_user_func - [internal], line ??
  CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
  Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 671
  Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 184
  Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
  [main] - APP/webroot/index.php, line 109
  </code></pre>
  
  <p>For some reason it can't access the permissions. And I can't seem to find a solution to fix this. Any help is would be great! Thanks in advance!</p>