mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
81679cc123
commit
a0ee5743e5
4 changed files with 9 additions and 0 deletions
|
@ -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');
|
||||||
?>
|
?>
|
|
@ -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');
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ArosAco extends AppModel {
|
class ArosAco extends AppModel {
|
||||||
|
|
||||||
|
var $useDbConfig = ACL_DATABASE;
|
||||||
/**
|
/**
|
||||||
* Enter description here...
|
* Enter description here...
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue