From 5c5b4c3a32d7ba4e6d9e392445a14166ce1fb436 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 22 Oct 2024 17:35:09 +0000 Subject: [PATCH] fix: keep support to old editable shared base --- .../src/strategies/base-view.strategy/base-view.strategy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/strategies/base-view.strategy/base-view.strategy.ts b/packages/nocodb/src/strategies/base-view.strategy/base-view.strategy.ts index 192e459d8c..c81c89b908 100644 --- a/packages/nocodb/src/strategies/base-view.strategy/base-view.strategy.ts +++ b/packages/nocodb/src/strategies/base-view.strategy/base-view.strategy.ts @@ -23,8 +23,8 @@ export class BaseViewStrategy extends PassportStrategy(Strategy, 'base-view') { } user = { - roles: extractRolesObj('viewer'), - base_roles: extractRolesObj('viewer'), + roles: extractRolesObj(sharedProject?.roles), + base_roles: extractRolesObj(sharedProject?.roles), }; }