From cd03671ee43968c8f481c80359b2e637da4f8947 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Tue, 29 Sep 2020 08:27:05 -0400 Subject: [PATCH] EZP-31782: PermissionChecker caches policy limitations incorrectly (#1462) --- src/lib/Permission/PermissionChecker.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/Permission/PermissionChecker.php b/src/lib/Permission/PermissionChecker.php index d184186346..3ba06b5406 100644 --- a/src/lib/Permission/PermissionChecker.php +++ b/src/lib/Permission/PermissionChecker.php @@ -38,9 +38,6 @@ class PermissionChecker implements PermissionCheckerInterface /** @var \eZ\Publish\API\Repository\UserService */ private $userService; - /** @var array */ - private $flattenArrayOfLimitations; - /** @var \eZ\Publish\API\Repository\LocationService */ private $locationService; @@ -239,7 +236,7 @@ private function flattenArrayOfLimitationsForCurrentUser(array $hasAccess): arra } } - return $this->flattenArrayOfLimitations[$currentUserId] = $limitations; + return $limitations; } /**