mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +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
|
@ -21,7 +21,7 @@ class RegistrarController < ApplicationController
|
|||
riw = current_user.registrar.registrar_ip_white?(request.ip)
|
||||
|
||||
aiw = true
|
||||
if current_user.can_make_api_calls?
|
||||
if current_user.can?(:create, :epp_request)
|
||||
aiw = current_user.registrar.api_ip_white?(request.ip)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue