Clarified ACL node lookup failed error.

Original error was ambiguous in stating whether the ARO node lookup failed or the ACO node lookup failed.
This commit is contained in:
Jimmy Madon 2014-02-05 18:25:14 +00:00
parent 2cd72126fe
commit fcd41e45a7

View file

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