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:
nate 2006-09-19 16:12:50 +00:00
parent 2d6eee36ac
commit fbfcdc24dd

View file

@ -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) {