Allowing user to specify database for ACL tables. (Ticket #1508)

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3610 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-10-09 15:47:50 +00:00
parent 81679cc123
commit a0ee5743e5
4 changed files with 9 additions and 0 deletions

View file

@ -140,4 +140,5 @@
*/ */
define('ACL_CLASSNAME', 'DB_ACL'); define('ACL_CLASSNAME', 'DB_ACL');
define('ACL_FILENAME', 'dbacl' . DS . 'db_acl'); define('ACL_FILENAME', 'dbacl' . DS . 'db_acl');
define('ACL_DATABASE', 'default');
?> ?>

View file

@ -27,6 +27,9 @@
* @lastmodified $Date$ * @lastmodified $Date$
* @license http://www.opensource.org/licenses/mit-license.php The MIT License * @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/ */
if (!defined('ACL_DATABASE')) {
define('ACL_DATABASE', 'default');
}
uses('controller' . DS . 'components' . DS . 'acl_base'); uses('controller' . DS . 'components' . DS . 'acl_base');
uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'aclnode'); uses('controller' . DS . 'components' . DS . 'dbacl' . DS . 'models' . DS . 'aclnode');

View file

@ -36,6 +36,9 @@
* *
*/ */
class AclNode extends AppModel { class AclNode extends AppModel {
var $useDbConfig = ACL_DATABASE;
var $cacheQueries = false; var $cacheQueries = false;
/** /**
* Creates a new ARO/ACO node * Creates a new ARO/ACO node

View file

@ -38,6 +38,8 @@
*/ */
class ArosAco extends AppModel { class ArosAco extends AppModel {
var $useDbConfig = ACL_DATABASE;
/** /**
* Enter description here... * Enter description here...
* *