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

187057653 fix "edit profile" shows admin and confirmed toggles as a non-admin #22

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

Edge7481
Copy link

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works(if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves/which issues does this fix?:
A non-admin is currently able to see the "is admin" and "confirmed" toggles via edit profile. Interacting with it does not do anything for both admin and non-admins.

administration->users->edit renders views/admin/users/edit.html.haml, whereas edit profile renders views/users/edit.html.haml. The former is working as intended.

Changes proposed in this pull request:

Makes it such that no user (admins, non-admins) can see these toggles. An admin is still able to change these settings by going to administration->users->edit. The button for admin has also been updated from a checkbox to a toggle switch.

@Edge7481 Edge7481 changed the title 187057653 fix profile admin toggle 187057653 fix "edit profile" shows admin and confirmed toggles as a non-admin Feb 27, 2024
@Edge7481 Edge7481 self-assigned this Feb 27, 2024
@Edge7481 Edge7481 added the bug Something isn't working label Feb 27, 2024
@warrenlet
Copy link

LGTM

@warrenlet warrenlet merged commit da9b573 into sp23-main Mar 1, 2024
14 checks passed
@cycomachead cycomachead deleted the 187057653-fix-profile-admin-toggle branch August 1, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants