Skip to content

Commit 42ccbee

Browse files
committed
2 parents 0c88738 + e296e1d commit 42ccbee

166 files changed

Lines changed: 1001 additions & 146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/adr-0076-rev5.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/adr-0076-rev6.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/adr-0076-rev7.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/adr-0076-rev8.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/adr-0076-rev9.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.changeset/embed-objectql-example.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(auth): restore the admin gate on POST /admin/oauth-application/toggle-disabled after ADR-0068
6+
7+
ADR-0068 stopped `customSession` from synthesizing `user.role = 'admin'`;
8+
canonical roles now arrive in `user.roles[]` with `user.isPlatformAdmin` as a
9+
derived alias. The OAuth-client enable/disable route was missed in that
10+
migration and still gated on `session.user.role !== 'admin'`, which now rejects
11+
even platform admins (the scalar is no longer synthesized). It now mirrors the
12+
sibling /admin/unlock-user gate: `isPlatformAdmin` / `platform_admin` in
13+
`roles[]`, with the legacy `role` scalar as a fallback.
14+
15+
Also corrects the now-stale `customSession()` doc comment in auth-manager that
16+
still described the removed `user.role = 'admin'` overwrite.

.changeset/protocol-segment-interfaces.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/sdui-jsx-build-gate.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/sdui-jsx-page-spec.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)