Files
twenty/packages
Raphaël Bosi 47f82b9121 Gate the workspace setup AI chat to workspace creators (#23881)
The server already refuses to start a workspace setup chat for anyone
who isn't the workspace creator (`workspace-setup-chat.service.ts`, via
`userWorkspaceService.isWorkspaceCreator`), but nothing on the client
checked that. An invitee finishing onboarding was still routed to
`/workspace-setup`, where the kickoff mutation returned `UNAVAILABLE`
and the effect silently returned — leaving them on a dead-end page with
the onboarding header and an empty chat that never starts.

Exposes `isWorkspaceCreator` on `User` as a resolve field next to
`onboardingStatus`, reusing the existing service method, and gates both
the post-onboarding redirect and the page itself on it. Invitees now
land on the default home page instead.
2026-08-07 09:15:35 +00:00
..