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, {})) }