diff --git a/lib/Cake/Model/AclNode.php b/lib/Cake/Model/AclNode.php index a689ffe0e..b11d84988 100644 --- a/lib/Cake/Model/AclNode.php +++ b/lib/Cake/Model/AclNode.php @@ -102,7 +102,7 @@ class AclNode extends Model { 'alias' => "{$type}{$i}", 'type' => 'INNER', 'conditions' => array( - $db->name("{$type}{$i}.alias") . ' = ' . $db->value($alias, 'string') + "{$type}{$i}.alias" => $alias ) );