Fixed this following error: failed to open stream: No such file or directory [CORE\Cake\Model\Behavior\AclBehavior.php, line 52]

This commit is contained in:
Maggion Emmanuel 2011-05-28 06:45:06 -07:00
parent 40c397b003
commit 8a701f3ac9

View file

@ -18,6 +18,7 @@
* @since CakePHP v 1.2.0.4487 * @since CakePHP v 1.2.0.4487
* @license MIT License (http://www.opensource.org/licenses/mit-license.php) * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/ */
App::uses('AclNode', 'Model');
/** /**
* ACL behavior * ACL behavior
@ -48,9 +49,7 @@ class AclBehavior extends ModelBehavior {
$this->settings[$model->name]['type'] = strtolower($this->settings[$model->name]['type']); $this->settings[$model->name]['type'] = strtolower($this->settings[$model->name]['type']);
$types = $this->__typeMaps[$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)) { if (!is_array($types)) {
$types = array($types); $types = array($types);
} }