@@ -92,7 +92,7 @@ function startup() {
92
92
require_once (CONFIGS .'database.php ' );
93
93
94
94
if (!in_array ($ this ->command , array ('initdb ' ))) {
95
- $ this ->Acl = new AclComponent ();
95
+ $ this ->Acl =& new AclComponent ();
96
96
$ controller = null ;
97
97
$ this ->Acl ->startup ($ controller );
98
98
}
@@ -257,9 +257,9 @@ function check() {
257
257
extract ($ this ->__getParams ());
258
258
259
259
if ($ this ->Acl ->check ($ aro , $ aco , $ action )) {
260
- $ this ->out (sprintf (__ ("%s is allowed. " , true ), $ aro ), true );
260
+ $ this ->out (sprintf (__ ("%s is allowed. " , true ), $ aroName ), true );
261
261
} else {
262
- $ this ->out (sprintf (__ ("%s is not allowed. " , true ), $ aro ), true );
262
+ $ this ->out (sprintf (__ ("%s is not allowed. " , true ), $ aroName ), true );
263
263
}
264
264
}
265
265
@@ -560,6 +560,8 @@ function _getNodeId($class, $identifier) {
560
560
function __getParams () {
561
561
$ aro = is_numeric ($ this ->args [0 ]) ? intval ($ this ->args [0 ]) : $ this ->args [0 ];
562
562
$ aco = is_numeric ($ this ->args [1 ]) ? intval ($ this ->args [1 ]) : $ this ->args [1 ];
563
+ $ aroName = $ aro ;
564
+ $ acoName = $ aco ;
563
565
564
566
if (is_string ($ aro )) {
565
567
$ aro = $ this ->parseIdentifier ($ aro );
@@ -574,7 +576,7 @@ function __getParams() {
574
576
$ action = '* ' ;
575
577
}
576
578
}
577
- return compact ('aro ' , 'aco ' , 'action ' );
579
+ return compact ('aro ' , 'aco ' , 'action ' , ' aroName ' , ' acoName ' );
578
580
}
579
581
580
582
/**
0 commit comments