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

Add Functionality Allowing Super Admins to Confirm/Unconfirm User Emails #1009

Open
wants to merge 6 commits into
base: integration
Choose a base branch
from

Conversation

aaronskiba
Copy link
Collaborator

Fixes #1006

Changes proposed in this PR:

  • Include email confirmation status as an editable attribute on the /super_admin/users/:id path.
    Screenshot from 2025-02-10 12-19-02
    • The added logic includes special handling for superadmins. Specifically, it prevents the un-confirming of any already confirmed super admin email.
  • This added feature helps address an encountered issue (Investigate Users Not Receiving Confirmation Instructions Email #1005) where some institutions were blocking emails from @portagenetwork.ca, and as a result, preventing users from receiving email confirmation instructions.

This change addresses an issue where some users reported not receiving the confirmation instructions email. Rather than having to manually update the users email confirmation status within the Rails console, this change allows users to confirm/unconfirm user emails within the app.
`spec/controllers/super_admin/users_controller_spec.rb`:
- Added test to prevent un-confirming of any super admin email within app
`app/controllers/super_admin/users_controller.rb`:
- Added !@user.can_super_admin? check to enable the aforementioned test to pass
- Also, updated a `patch` statement to `put`
Copy link

github-actions bot commented Feb 10, 2025

1 Warning
⚠️ There are code changes, but no corresponding tests. Please include tests if this PR introduces any modifications in behavior. \n
Ignore this warning if the PR ONLY contains translation.io synced updates.

Generated by 🚫 Danger

@aaronskiba aaronskiba changed the title Add Functionality Allowing Super Admins to Confirm/Unconfirm User Email Within App Add Functionality Allowing Super Admins to Confirm/Unconfirm User Emails Feb 10, 2025
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.

1 participant