Skip to content

Commit

Permalink
EZP-31782: PermissionChecker caches policy limitations incorrectly (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev authored Sep 29, 2020
1 parent 551e7c2 commit cd03671
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/Permission/PermissionChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -239,7 +236,7 @@ private function flattenArrayOfLimitationsForCurrentUser(array $hasAccess): arra
}
}

return $this->flattenArrayOfLimitations[$currentUserId] = $limitations;
return $limitations;
}

/**
Expand Down

0 comments on commit cd03671

Please # to comment.