Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.3.9104] rbac: check for undefined permissions in PermissionsList#61738

Merged
BolajiOlajide merged 1 commit into
5.3.9104from
backport-61737-to-5.3.9104
Apr 9, 2024
Merged

[Backport 5.3.9104] rbac: check for undefined permissions in PermissionsList#61738
BolajiOlajide merged 1 commit into
5.3.9104from
backport-61737-to-5.3.9104

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

#60795 introduced the concept of permissions that only exists on Dotcom, however one thing we didn't take into consideration is how the frontend displays the role.

Turns out we get allPermissions from the generated graphql-operations.ts file which is statically generated at build time and doesn't know about permissions that only exist on dotcom.

Test plan

Manual testing?

Added a storybook also.
Backport d1169c6 from #61737

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants