Commit 8c53c80e authored by catch's avatar catch
Browse files

fix: #3576074 Current user is changed unexpectedly (follow-up)

    By: claudiu.cristea
    By: godotislate

(cherry picked from commit 5d6c16ef)
parent ea9f4ede
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ public function processAccessPolicies(AccountInterface $account, string $scope =
   *   Thrown if an access policy returns permissions for a scope other than the
   *   one passed in.
   */
  public function doProcessAccessPolicies(AccountInterface $account, string $scope): CalculatedPermissionsInterface {
  protected function doProcessAccessPolicies(AccountInterface $account, string $scope): CalculatedPermissionsInterface {
    $persistent_cache_contexts = $this->getPersistentCacheContexts($scope);
    $initial_cacheability = (new CacheableMetadata())->addCacheContexts($persistent_cache_contexts);
    $cache_keys = ['access_policies', $scope];