From fcd41e45a784345984deef5b845f54c9e1a62b42 Mon Sep 17 00:00:00 2001 From: Jimmy Madon Date: Wed, 5 Feb 2014 18:25:14 +0000 Subject: [PATCH] Clarified ACL node lookup failed error. Original error was ambiguous in stating whether the ARO node lookup failed or the ACO node lookup failed. --- lib/Cake/Model/Permission.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Model/Permission.php b/lib/Cake/Model/Permission.php index 5a781ff16..4268f3ad2 100644 --- a/lib/Cake/Model/Permission.php +++ b/lib/Cake/Model/Permission.php @@ -82,9 +82,9 @@ class Permission extends AppModel { $aroPath = $this->Aro->node($aro); $acoPath = $this->Aco->node($aco); - if (!$aroPath || !$acoPath) { + if (!$aroPath) { trigger_error(__d('cake_dev', - "%s - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: %s\nAco: %s", + "%s - Failed ARO node lookup in permissions check. Node references:\nAro: %s\nAco: %s", 'DbAcl::check()', print_r($aro, true), print_r($aco, true)),