Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

sourcegraph-release-bot
Copy link
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

@BolajiOlajide BolajiOlajide merged commit ed449bc into 5.3.9104 Apr 9, 2024
8 of 10 checks passed
@BolajiOlajide BolajiOlajide deleted the backport-61737-to-5.3.9104 branch April 9, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants