Commit 9130b33
fix(console): route org-less users into guided org creation on multi-org (#2004)
RequireOrganization previously treated an empty organizations list as
single-tenant and rendered through to /home — so on a multi-org (cloud)
deployment a brand-new, org-less user landed on a dead home with no org/env.
Now, when the runtime config has multiOrgEnabled !== false and the user has no
orgs, redirect to /organizations (the 'Create your first organization' screen).
Single-tenant self-host (multiOrgEnabled === false) still renders through.
Pairs with cloud's guided-org-creation (signup no longer auto-provisions an org).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent eb682d1 commit 9130b33
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
182 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
183 | 199 | | |
184 | 200 | | |
185 | 201 | | |
| |||
0 commit comments