title: ACL in Cakephp 2.xx using custom tables
body: <p>I set up a custom Authentication system for my CakePHP application. Now we need to include some ACL to it. I followed the instructions <a href="http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html" rel="nofollow">here</a>. Now for some reason I need to use the tables admin_users and admin_user_roles instead of the usual group and users. I can login fine but the ARO search fails. and it gives me the following error.</p>
  
  <pre><code>Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
  (
      [Aro0.model] =&gt; User
      [Aro0.foreign_key] =&gt; 4
  )
  " [CORE/Cake/Model/AclNode.php, line 176]
  Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.  Node          references:
      Aro: Array
      (
          [User] =&gt; Array
          (
              [id] =&gt; 4
              [admin_user_role_id] =&gt; 1
              [email] =&gt; mio@kalibrr.com
              [username] =&gt; mio
              [created] =&gt; 2012-09-28 08:03:25
              [modified] =&gt; 2012-10-01 02:09:42
           )
  
  )
  
  Aco: controllers/Dashboard/index [CORE/Cake/Controller/Component/AclComponent.php, line 303]
  </code></pre>
  
  <p>It seems to still be looking for it in the User Model. Is there any way to change it so it looks for it in the AdminUsers table?</p>
  
  <p>Looked in the DB and the Model field all point to AdminUser.</p>