Browse Source
Fix sign-up restrictions based on IP addresses not being enforced (#15607)
Fixes #15606
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
closed-social-v3
ThibG
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/models/user.rb
|
|
@ -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 |
|
|
|
|
|
|
|