title: Having trouble with CakePHP 2.0 admin prefix and AuthComponent within my plugin on User model specifically
body: <pre><code>public function admin_view($user_id = NULL) {
      debug($this-&gt;User); exit;
  }
  
  public function view($user_id = null) {
      debug($this-&gt;User); exit;
  }
  </code></pre>
  
  <p>This is within my plugin's UsersController. admin_view instantiates an AppModel object while view() instantiates the correct UserModel/PluginNameAppModel. This is only doing this to my User model which is tied into ACL as well as my Group model, which this isn't happening to. Worked fine before converting to a plugin. Still doesn't work with a fresh-baked plugin model. Doesn't work when the entire User model is commented out, either. The admin prefix line from app/Config/core.php is commented out, enabled admin prefixes. There is no routing within the plugin's folder. When I use this line:</p>
  
  <pre><code>$this-&gt;Auth-&gt;allow('admin_index');
  </code></pre>
  
  <p>It instantiates the correct model so this is likely an AuthComponent issue.</p>
  
  <p>This was using CakePHP 2.0.5.</p>