diff --git a/Neos.Flow/Classes/Security/Context.php b/Neos.Flow/Classes/Security/Context.php index 45344188a6..a2c5ae0a73 100644 --- a/Neos.Flow/Classes/Security/Context.php +++ b/Neos.Flow/Classes/Security/Context.php @@ -409,18 +409,18 @@ public function getRoles() return $this->roles; } - $this->roles = [RoleId::everybody()->value => $this->policyService->getRole(RoleId::everybody())]; + $this->roles = [RoleId::everybody()->value => $this->policyService->getRole(RoleId::everybody()->value)]; $authenticatedTokens = array_filter($this->getAuthenticationTokens(), static function (TokenInterface $token) { return $token->isAuthenticated(); }); if (empty($authenticatedTokens)) { - $this->roles[RoleId::anonymous()->value] = $this->policyService->getRole(RoleId::anonymous()); + $this->roles[RoleId::anonymous()->value] = $this->policyService->getRole(RoleId::anonymous()->value); return $this->roles; } - $this->roles[RoleId::authenticatedUser()->value] = $this->policyService->getRole(RoleId::authenticatedUser()); + $this->roles[RoleId::authenticatedUser()->value] = $this->policyService->getRole(RoleId::authenticatedUser()->value); foreach ($authenticatedTokens as $token) { $account = $token->getAccount();