mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Add feature to disable IP whitelist #2707
This commit is contained in:
parent
5a0fd06e20
commit
ffebff72dd
6 changed files with 32 additions and 2 deletions
|
@ -24,6 +24,8 @@ class WhiteIp < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def registrar_ip_white?(ip)
|
||||
return true unless Setting.registrar_ip_whitelist_enabled
|
||||
|
||||
at = WhiteIp.arel_table
|
||||
WhiteIp.where(
|
||||
at[:interface].eq(REGISTRAR).or(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue