Skip to content
Snippets Groups Projects
Unverified Commit e955ca54 authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix sign-up restrictions based on IP addresses not being enforced (#15607)


Fixes #15606

Co-authored-by: default avatarClaire <claire.github-309c@sitedethib.com>
parent d8d75cd6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment