From c50dc97a7e9f632ce5de46a6781bbd990b40fa74 Mon Sep 17 00:00:00 2001 From: m4ximum Date: Wed, 3 Nov 2021 10:12:50 +0100 Subject: [PATCH] fixed deprecation warning in PermissionsTable to work with CakePHP 4.3.x --- src/Model/Table/PermissionsTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Table/PermissionsTable.php b/src/Model/Table/PermissionsTable.php index 8e455a96..92293024 100644 --- a/src/Model/Table/PermissionsTable.php +++ b/src/Model/Table/PermissionsTable.php @@ -103,7 +103,7 @@ public function check($aro, $aco, $action = '*') } $inherited = []; - $acoIDs = $acoPath->extract('id')->toArray(); + $acoIDs = $acoPath->all()->extract('id')->toArray(); $count = $aroPath->count(); $aroPaths = $aroPath->toArray();