mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
No counter update when no current user #2348
This commit is contained in:
parent
34c2e2d210
commit
2580d5efb0
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
class EppController < ApplicationController
|
||||
include Iptable
|
||||
layout false
|
||||
protect_from_forgery with: :null_session
|
||||
skip_before_action :verify_authenticity_token
|
||||
|
@ -286,6 +287,7 @@ class EppController < ApplicationController
|
|||
|
||||
def iptables_counter_update
|
||||
return if ENV['iptables_counter_enabled'].blank? && ENV['iptables_counter_enabled'] != 'true'
|
||||
Iptable.counter_update(current_user.registrar_code, request.remote_ip)
|
||||
return if current_user.blank?
|
||||
counter_update(current_user.registrar_code, request.remote_ip)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue