Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix sign-up restrictions based on IP addresses not being enforced (ma…
Browse files Browse the repository at this point in the history
…stodon#15607)

Fixes mastodon#15606

Co-authored-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire and ClearlyClaire authored Jan 21, 2021
1 parent d8d75cd commit e955ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def enable!

def confirm
new_user = !confirmed?
self.approved = true if open_registrations?
self.approved = true if open_registrations? && !sign_up_from_ip_requires_approval?

super

Expand Down

0 comments on commit e955ca5

Please sign in to comment.