mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
2cd72126fe
commit
fcd41e45a7
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ class Permission extends AppModel {
|
||||||
$aroPath = $this->Aro->node($aro);
|
$aroPath = $this->Aro->node($aro);
|
||||||
$acoPath = $this->Aco->node($aco);
|
$acoPath = $this->Aco->node($aco);
|
||||||
|
|
||||||
if (!$aroPath || !$acoPath) {
|
if (!$aroPath) {
|
||||||
trigger_error(__d('cake_dev',
|
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()',
|
'DbAcl::check()',
|
||||||
print_r($aro, true),
|
print_r($aro, true),
|
||||||
print_r($aco, true)),
|
print_r($aco, true)),
|
||||||
|
|
Loading…
Reference in a new issue