mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Separated epp login and epp request abilities #2742
This commit is contained in:
parent
598ab7ba63
commit
34f1d7d254
5 changed files with 83 additions and 61 deletions
|
@ -71,7 +71,7 @@ class Registrar::SessionsController < Devise::SessionsController
|
|||
redirect_to :back and return
|
||||
end
|
||||
|
||||
if @api_user.can_make_api_calls?
|
||||
if @api_user.can(:create, :epp_login)
|
||||
unless @api_user.registrar.api_ip_white?(request.ip)
|
||||
flash[:alert] = I18n.t(:ip_is_not_whitelisted)
|
||||
redirect_to :back and return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue