mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Ignore empty identity for regisrar user switch #2754
This commit is contained in:
parent
85e5a17509
commit
598ab7ba63
4 changed files with 32 additions and 11 deletions
|
@ -105,7 +105,7 @@ class Epp::SessionsController < EppController
|
|||
end
|
||||
|
||||
def connection_limit_ok?
|
||||
return true if Rails.env.test?
|
||||
return true if Rails.env.test? || Rails.env.development?
|
||||
c = EppSession.where(
|
||||
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 5.minutes
|
||||
).count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue