Ignore empty identity for regisrar user switch #2754

This commit is contained in:
Priit Tark 2015-08-18 14:15:16 +03:00
parent 85e5a17509
commit 598ab7ba63
4 changed files with 32 additions and 11 deletions

View file

@ -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