Add Functionality Allowing Super Admins to Confirm/Unconfirm User Emails by aaronskiba · Pull Request #3535 · DMPRoadmap/roadmap
added 9 commits
July 4, 2025 09:40This 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`
Improves UX and reduces confusion when updating a user's email confirmation status. - Moved confirmation status inline with the "Email status:" heading - Updated checkbox helper text to reflect current @user.confirmed? state: - Shows "(Check to confirm email)" if unconfirmed - Shows "(Uncheck to unconfirm email)" if confirmed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters