Skip to content

Commit

Permalink
Automatically switch from open to approved registrations in absence o…
Browse files Browse the repository at this point in the history
…f moderators (mastodon#29337)
  • Loading branch information
ClearlyClaire authored and mikehikes committed Jul 4, 2024
1 parent e4bca58 commit 003f09d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def active_moderators?
def switch_to_approval_mode!
Setting.registrations_mode = 'approved'

User.those_who_can(:manage_settings).includes(:account).find_each do |user|
User.those_who_can(:view_devops).includes(:account).find_each do |user|
AdminMailer.with(recipient: user.account).auto_close_registrations.deliver_later
end
end
Expand Down

0 comments on commit 003f09d

Please sign in to comment.