Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
@ -152,7 +152,7 @@ class User < ApplicationRecord
|
||||
|
||||
def confirm
|
||||
new_user = !confirmed?
|
||||
self.approved = true if open_registrations?
|
||||
self.approved = true if open_registrations? && !sign_up_from_ip_requires_approval?
|
||||
|
||||
super
|
||||
|
||||
|
Reference in New Issue
Block a user