From e551a364f63e28c9329dbce492488b9f112e3473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Thu, 21 Dec 2023 16:14:55 +0100 Subject: [PATCH] fix(api-gateway): missing readonly access for demo when utilizing grpc workflow (#1005) --- packages/api-gateway/src/Controller/AuthMiddleware.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/api-gateway/src/Controller/AuthMiddleware.ts b/packages/api-gateway/src/Controller/AuthMiddleware.ts index 654f4b48e..66721804f 100644 --- a/packages/api-gateway/src/Controller/AuthMiddleware.ts +++ b/packages/api-gateway/src/Controller/AuthMiddleware.ts @@ -74,6 +74,7 @@ export abstract class AuthMiddleware extends BaseMiddleware { response.locals.session = decodedToken.session response.locals.roles = decodedToken.roles response.locals.sharedVaultOwnerContext = decodedToken.shared_vault_owner_context + response.locals.readOnlyAccess = decodedToken.session?.readonly_access ?? false response.locals.belongsToSharedVaults = decodedToken.belongs_to_shared_vaults ?? [] } catch (error) { let detailedErrorMessage = (error as Error).message