From 5b81e9e611d1cb601bc9175c4cef77f2d0d48d8c Mon Sep 17 00:00:00 2001 From: Antoine Moreaux Date: Fri, 20 Jun 2025 11:55:02 +0200 Subject: [PATCH] =?UTF-8?q?fix(auth):=20handle=20availableWorkspacesCount?= =?UTF-8?q?=20correctly=20when=20listing=20wor=E2=80=A6=20(#12746)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …kspaces --- .../src/engine/core-modules/auth/services/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts b/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts index fb6c0f780..27512be2f 100644 --- a/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts +++ b/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts @@ -698,7 +698,7 @@ export class AuthService { !workspaceId && !workspaceInviteHash && action === 'list-available-workspaces' && - availableWorkspacesCount !== 0 + availableWorkspacesCount > 1 ) { const user = existingUser ??