mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Fix CC issues
This commit is contained in:
parent
7d8c24533a
commit
64308e1104
3 changed files with 50 additions and 13 deletions
|
@ -161,12 +161,10 @@ class Registrar
|
|||
|
||||
possible_users = ApiUser.where(identity_code: idc) || User.new
|
||||
possible_users.each do |selected_user|
|
||||
next unless selected_user.registrar.white_ips.registrar_area.include_ip?(request.ip)
|
||||
|
||||
return selected_user
|
||||
if selected_user.registrar.white_ips.registrar_area.include_ip?(request.ip)
|
||||
return selected_user
|
||||
end
|
||||
end
|
||||
|
||||
User.new
|
||||
end
|
||||
|
||||
def check_ip_restriction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue