Repository navigation
web/rbac: disambiguate duplicate permission names in initial permissions - #20786
Merged
GirlBossRush merged 1 commit intoMar 9, 2026
Conversation
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20786 +/- ##
==========================================
- Coverage 93.43% 93.39% -0.05%
==========================================
Files 983 983
Lines 55644 55644
==========================================
- Hits 51990 51967 -23
- Misses 3654 3677 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
GirlBossRush
approved these changes
Mar 9, 2026
Contributor
|
🍒 Cherry-pick to |
BeryJu
pushed a commit
that referenced
this pull request
Mar 9, 2026
…ons (cherry-pick #20786 to version-2026.2) (#20805) web/rbac: disambiguate duplicate permission names in initial permissions (#20786) Co-authored-by: Oluwatobi Mustapha <[email protected]>
kensternberg-authentik
added a commit
that referenced
this pull request
Mar 10, 2026
* main: core: allow interfaces to specify alternative stylesheets (#20774) website/docs: update agent docs (#20782) core, web: update translations (#20809) lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810) core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811) core: bump cachetools from 7.0.4 to 7.0.5 (#20812) core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814) core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815) web: bump the storybook group across 1 directory with 5 updates (#20816) web: bump cspell from 9.6.4 to 9.7.0 (#20817) web: bump @formatjs/intl-listformat from 8.2.1 to 8.2.2 in /web (#20818) web: bump mermaid from 11.12.3 to 11.13.0 in /web (#20819) web: bump @types/node from 25.3.5 to 25.4.0 in /web (#20820) endpoints/connectors/agent: cleanup leftover (#20808) endpoints: prevent selection of incompatible connector (#20806) website/docs: Add steps to set up group devices (#20735) web/rbac: disambiguate duplicate permission names in initial permissions (#20786)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
Fixes #19847
The initial permissions dual-select rendered each option using only
Permission.name, which made entries ambiguous when different models expose the same display name (for exampleDevice Token).This change disambiguates each option by adding a scoped descriptor in the secondary line:
<app label> / <model label> (<codename>).Implementation details:
rbacPermissionPairinweb/src/admin/rbac/InitialPermissionsForm.tsto render both the existing primary label and a deterministic descriptor.This is a UI-only change. It does not modify permission semantics, API contracts, or stored data.
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)