From 5da63b70f4350c753a7b3a024a7c4976b1cbfbc6 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 2 Apr 2024 13:54:45 +0700 Subject: [PATCH] UBERF-6265: Fix account creation from account service (#5132) Signed-off-by: Andrey Sobolev --- server/account/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/account/src/index.ts b/server/account/src/index.ts index 9d9f1c13a9..70c01ce7ab 100644 --- a/server/account/src/index.ts +++ b/server/account/src/index.ts @@ -1092,7 +1092,7 @@ export async function getWorkspaceInfo ( const [ws] = ( await db.collection(WORKSPACE_COLLECTION).find(withProductId(productId, query)).toArray() - ).filter((it) => it.disabled !== true) + ).filter((it) => it.disabled !== true || account?.admin === true) if (ws == null) { throw new PlatformError(new Status(Severity.ERROR, platform.status.Forbidden, {})) }