mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 21:33:21 +00:00
Fix sign-up restrictions based on IP addresses not being enforced (#15607)
Fixes #15606 Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
d8d75cd6c2
commit
e955ca5463
|
@ -152,7 +152,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
def confirm
|
def confirm
|
||||||
new_user = !confirmed?
|
new_user = !confirmed?
|
||||||
self.approved = true if open_registrations?
|
self.approved = true if open_registrations? && !sign_up_from_ip_requires_approval?
|
||||||
|
|
||||||
super
|
super
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue