mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding 1.2 branch fix for Ticket #1077
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3522 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2d6eee36ac
commit
fbfcdc24dd
1 changed files with 2 additions and 1 deletions
|
@ -75,6 +75,7 @@ class DB_ACL extends AclBase {
|
|||
return false;
|
||||
}
|
||||
|
||||
$tmpAcoPath = array_reverse($tmpAcoPath);
|
||||
$acoPath = array();
|
||||
|
||||
if ($action != '*' && !in_array('_' . $action, $permKeys)) {
|
||||
|
@ -90,7 +91,7 @@ class DB_ACL extends AclBase {
|
|||
$perms = $Perms->findAll(array(
|
||||
'ArosAco.aro_id' => $aroPath[$i]['Aro']['id'],
|
||||
'ArosAco.aco_id' => $acoPath), null,
|
||||
'Aco.lft asc'
|
||||
'Aco.lft desc'
|
||||
);
|
||||
|
||||
if ($perms == null || count($perms) == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue