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 membership role action and checks under Site Settings > People #4910

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

zoldar
Copy link
Contributor

@zoldar zoldar commented Dec 16, 2024

Changes

This logic will be soon revised (and replaced) once we commence with implementing teams support.

This is a fix for a regression where Admin role update under Site Settings > People is failing due to wrong mapping.

@zoldar zoldar requested a review from aerosol December 16, 2024 17:59
@zoldar zoldar added the preview label Dec 16, 2024
Copy link

Preview environment👷🏼‍♀️🏗️
PR-4910

@@ -142,7 +142,7 @@
</p>
</div>

<%= if membership.role == :admin do %>
<%= if membership.role == "admin" do %>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently membership.role type here is inconsistent - for owner, it's an atom, for the rest, it's a string. We'll correct that on subsequent rewrite.

@zoldar zoldar enabled auto-merge December 16, 2024 18:05
@zoldar zoldar added this pull request to the merge queue Dec 16, 2024
Merged via the queue into master with commit 2938936 Dec 16, 2024
9 checks passed
@zoldar zoldar deleted the fix/update-role-wrong-role-name branch December 16, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants