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: hide "Add a new editor" button from non-admin users #3713

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Sep 19, 2024

It's the second planning meeting in a row where Ian G has asked about / been a bit confused by adding and editing users and I think it's because he can see the add button as a teamEditor, but doesn't have permission to actually use it.

This change hides the "Add a new editor" from non-platformAdmins similar to the "Edit" button. Database-level permissions already look correct (eg only platformAdmin role has "insert" permission on team_members table).

We've thrown this previous error: https://opensystemslab.slack.com/archives/C01E3AC0C03/p1725542317058179
Screenshot from 2024-09-19 15-38-11

Good reminder to ourselves to trigger our own platformAdmin status "off" sometimes when testing/code reviewing pizzas!

Copy link

github-actions bot commented Sep 19, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak marked this pull request as ready for review September 19, 2024 14:11
@jessicamcinchak jessicamcinchak requested a review from a team September 19, 2024 14:11
Copy link
Contributor

@jamdelion jamdelion left a comment

Choose a reason for hiding this comment

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

Clear and concise! ⭐
Thanks for sorting this, it was my bad for not covering this in the original ticket! I think I got a bit confused about the roles available/who was supposed to see what... 🙈 It's defo good advice to toggle off platform admin when testing pizzas, thanks 🍕

@jessicamcinchak jessicamcinchak merged commit fbe014f into main Sep 20, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/hide-add-edit-user-unless-admin branch September 20, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants