1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00

Fix auto-close email being sent to users with devops permissions instead of settings permissions (#29356)

This commit is contained in:
Claire 2024-02-22 18:15:38 +01:00
parent 2fc87611be
commit c7312411b8

View File

@ -26,7 +26,7 @@ class Scheduler::AutoCloseRegistrationsScheduler
def switch_to_approval_mode!
Setting.registrations_mode = 'approved'
User.those_who_can(:view_devops).includes(:account).find_each do |user|
User.those_who_can(:manage_settings).includes(:account).find_each do |user|
AdminMailer.auto_close_registrations(recipient: user.account).deliver_later
end
end