Browse Source

acl file rename

euromark 14 years ago
parent
commit
466bdc8748
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Controller/Component/Auth/TinyAuthorize.php

+ 5 - 5
Controller/Component/Auth/TinyAuthorize.php

@@ -4,8 +4,8 @@ App::uses('Inflector', 'Utility');
 if (!defined('AUTH_CACHE')) {
 	define('AUTH_CACHE', CACHE.'persistent'.DS);
 }
-if (!defined('ROLE_CONFIGS')) {
-	define('ROLE_CONFIGS', 'roles.ini');
+if (!defined('ACL_FILE')) {
+	define('ACL_FILE', 'acl.ini');
 }
 
 /**
@@ -123,10 +123,10 @@ class TinyAuthorize extends BaseAuthorize {
 			include(AUTH_CACHE.'roles.tmp');
 			return $roles;
 		}
-		if (!file_exists(APP . 'Config' . DS . ROLE_CONFIGS)) {
-			touch(APP . 'Config' . DS . ROLE_CONFIGS);
+		if (!file_exists(APP . 'Config' . DS . ACL_FILE)) {
+			touch(APP . 'Config' . DS . ACL_FILE);
 		}
-		$iniArray = parse_ini_file(APP . 'Config' . DS . ROLE_CONFIGS, true);
+		$iniArray = parse_ini_file(APP . 'Config' . DS . ACL_FILE, true);
 		
 		$availableRoles = Configure::read('Role');
 		if (!is_array($availableRoles)) {