mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 21:21:36 +01:00
Fix auto-close email being sent to users with devops permissions instead of settings permissions (#29355)
This commit is contained in:
parent
d23f445527
commit
b0822ae9cd
1 changed files with 1 additions and 1 deletions
|
@ -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.with(recipient: user.account).auto_close_registrations.deliver_later
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue