mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
fix indention
This commit is contained in:
parent
3f1c36bd9a
commit
e62bb19a7e
2 changed files with 10 additions and 10 deletions
|
@ -156,12 +156,12 @@ class Registrar
|
||||||
def find_user_by_idc_and_allowed(idc)
|
def find_user_by_idc_and_allowed(idc)
|
||||||
return User.new unless idc
|
return User.new unless idc
|
||||||
possible_users = ApiUser.where(identity_code: idc) || User.new
|
possible_users = ApiUser.where(identity_code: idc) || User.new
|
||||||
for i in 0..possible_users.count
|
for selected_user in 0..possible_users.count
|
||||||
if possible_users[i].registrar.white_ips.registrar_area.include_ip?(request.ip)
|
if possible_users[selected_user].registrar.white_ips.registrar_area.include_ip?(request.ip)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
possible_users[i]
|
possible_users[selected_user]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,12 +58,12 @@ class ApiUser < User
|
||||||
|
|
||||||
return false if ip.blank?
|
return false if ip.blank?
|
||||||
possible_users = where(identity_code: identity_code)
|
possible_users = where(identity_code: identity_code)
|
||||||
for i in 0..possible_users.count
|
for selected_user in 0..possible_users.count
|
||||||
if possible_users[i].registrar.white_ips.registrar_area.include_ip?(ip)
|
if possible_users[selected_user].registrar.white_ips.registrar_area.include_ip?(ip)
|
||||||
break
|
break
|
||||||
end
|
|
||||||
end
|
end
|
||||||
possible_users[i]
|
end
|
||||||
|
possible_users[selected_user]
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue