mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
166132ca10
commit
8f929c6ff8
3 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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{
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue