Fixing paths to correctly load acl models.

Updating test for acl

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4961 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-01 02:30:26 +00:00
parent 166132ca10
commit 8f929c6ff8
3 changed files with 5 additions and 7 deletions

View file

@ -60,10 +60,7 @@ class AclBehavior extends ModelBehavior {
$type = $this->__typeMaps[$this->settings[$model->name]['type']];
if (!ClassRegistry::isKeySet($type)) {
uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'aclnode');
uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'aco');
uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'aro');
uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'permission');
uses('model' . DS . 'db_acl');
$object =& new $type();
} else {
$object =& ClassRegistry::getObject($type);

View file

@ -19,7 +19,7 @@
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @subpackage cake.cake.libs.controller.componenets.iniacl
* @subpackage cake.cake.libs.model.iniacl
* @since CakePHP(tm) v 0.2.9
* @version $Revision$
* @modifiedby $LastChangedBy$
@ -30,7 +30,7 @@
* In this file you can extend the AclBase.
*
* @package cake
* @subpackage cake.cake.libs.controller.componenets.iniacl
* @subpackage cake.cake.libs.model.iniacl
*/
class INI_ACL extends AclBase{
/**

View file

@ -29,7 +29,8 @@
if (!defined('CAKEPHP_UNIT_TEST_EXECUTION')) {
define('CAKEPHP_UNIT_TEST_EXECUTION', 1);
}
require_once LIBS.'controller'.DS.'components'.DS.'dbacl'.DS.'models'.DS.'aclnode.php';
require_once LIBS.'controller'.DS.'components'.DS.'acl.php';
require_once LIBS.'model'.DS.'db_acl.php';
/**
* Short description for class.