Skip to content

Commit

Permalink
Merge pull request #100 from kamui545/2.0
Browse files Browse the repository at this point in the history
Fixed 'require' error in ACLBehavior in CakePHP2.0
  • Loading branch information
markstory committed May 28, 2011
2 parents f905237 + 8a701f3 commit 80b70c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/Model/Behavior/AclBehavior.php
Expand Up @@ -18,6 +18,7 @@
* @since CakePHP v 1.2.0.4487
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('AclNode', 'Model');

/**
* ACL behavior
Expand Down Expand Up @@ -48,9 +49,7 @@ public function setup($model, $config = array()) {
$this->settings[$model->name]['type'] = strtolower($this->settings[$model->name]['type']);

$types = $this->__typeMaps[$this->settings[$model->name]['type']];
if (!class_exists('AclNode')) {
require CAKE . 'model' . DS . 'db_acl.php';
}

if (!is_array($types)) {
$types = array($types);
}
Expand Down

0 comments on commit 80b70c1

Please sign in to comment.