Skip to content

Commit 92775e5

Browse files
committed
chore(webapp): add server-changes note for RBAC route permission enforcement
1 parent 5636b9b commit 92775e5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
area: webapp
3+
type: feature
4+
---
5+
6+
Enforce role-based permissions on the dashboard routes for cancelling and
7+
replaying runs (single and bulk), creating/promoting prompt versions, inviting
8+
and managing organization members, and managing billing. Each route now
9+
declares its required permission through the RBAC route builders'
10+
`authorization` option, and the matching UI controls are disabled with an
11+
explanatory tooltip (rather than hidden) when the current role lacks the
12+
permission. Behaviour is unchanged in the default configuration, where
13+
permissions are permissive and every control stays enabled.
14+
15+
Adds reusable building blocks for this: a `checkPermissions` helper that turns
16+
a set of permission checks into a boolean map for a loader to pass to the
17+
client, and `PermissionButton` / `PermissionLink` wrappers that disable and
18+
add a tooltip when a permission is missing.

0 commit comments

Comments
 (0)