mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
parent
f6522dd62c
commit
c6aa74529c
2 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class EppController < ApplicationController
|
|||
e_s = epp_session
|
||||
return if e_s.new_record?
|
||||
|
||||
if e_s.updated_at < Time.zone.now - 5.minutes
|
||||
if !Rails.env.development? && (e_s.updated_at < Time.zone.now - 5.minutes)
|
||||
@api_user = current_user # cache current_user for logging
|
||||
e_s.destroy
|
||||
response.headers['X-EPP-Returncode'] = '1500'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue