feat: dashboard route gated on canSeeOrgAdmin

Relax the dashboard route from canSeeAdmin (strict platform admin)
to canSeeOrgAdmin so the access seam can widen the audience past
the platform admin — by default platform admin, plus whatever an
access extension chooses to admit. The dashboard endpoint takes
care of scoping the response per caller.

Also move Dashboard under the canSeeOrgAdmin bullet in the
access.ts predicate notes.
This commit is contained in:
gitlawr
2026-05-12 14:20:18 +08:00
committed by jialin
parent 10781da086
commit 5ef671f047
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -9,7 +9,10 @@ const baseRoutes = [
icon: 'icon-dashboard',
selectedIcon: 'icon-dashboard-filled',
defaultIcon: 'icon-dashboard',
access: 'canSeeAdmin',
// `canSeeOrgAdmin` widens to anyone the access seam grants
// admin-ish visibility — by default platform admin, plus
// whatever the routes extension chooses to allow.
access: 'canSeeOrgAdmin',
component: './dashboard',
routes: []
},