Commit f616908
committed
fix(webapp): drive the SSO upsell from the loader's entitlement decision
The client recomputed the gate from useCurrentPlan(), which is undefined
wherever billing isn't configured. The server grants those deployments
access, so it returned the real config surface while the page rendered
the upgrade prompt over the top of it — self-hosters who installed the
plugin could never reach the settings.
Pass isEntitled down from the loader so there is one decision, made
server-side. Removes the last plan-shaped read in the file.1 parent a4a15d9 commit f616908
1 file changed
Lines changed: 4 additions & 11 deletions
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| |||
149 | 141 | | |
150 | 142 | | |
151 | 143 | | |
| 144 | + | |
152 | 145 | | |
153 | 146 | | |
154 | 147 | | |
| |||
179 | 172 | | |
180 | 173 | | |
181 | 174 | | |
| 175 | + | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
| |||
371 | 365 | | |
372 | 366 | | |
373 | 367 | | |
374 | | - | |
| 368 | + | |
| 369 | + | |
375 | 370 | | |
376 | | - | |
377 | 371 | | |
378 | | - | |
379 | 372 | | |
380 | 373 | | |
381 | 374 | | |
| |||
0 commit comments