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

fix: update roles permission guard #4070

Merged
merged 1 commit into from
Jun 22, 2023
Merged

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Jun 22, 2023

https://linear.app/unleash/issue/2-1162/read-roles-permissions-should-give-you-access-to-read-roles

This updates the roles page permission guard to be the READ_ROLES permission instead of ADMIN, which better reflects on the UI the real permissions of the user.

Our current AdminAlert component is pretty limited however, and I plan to improve it in https://linear.app/unleash/issue/2-1165/improve-adminalert-usage-to-be-more-generic-accept-non-admin to better reflect the permission we're missing (instead of alerting that you need to be an admin).

@vercel
Copy link

vercel bot commented Jun 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview Jun 22, 2023 2:31pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jun 22, 2023 2:31pm

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG!

@nunogois nunogois enabled auto-merge (squash) June 22, 2023 14:36
@nunogois nunogois merged commit 4163788 into main Jun 22, 2023
19 checks passed
@nunogois nunogois deleted the fix-roles-permission-guard branch June 22, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants