mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 06:04:56 +02:00
Merge pull request #1672 from internetee/fix-poll-requests-auth
Remove whitelist checking from poll ability
This commit is contained in:
commit
0452855835
1 changed files with 3 additions and 1 deletions
|
@ -32,12 +32,14 @@ class Ability
|
||||||
|
|
||||||
def epp # Registrar/api_user dynamic role
|
def epp # Registrar/api_user dynamic role
|
||||||
if @user.registrar.api_ip_white?(@ip)
|
if @user.registrar.api_ip_white?(@ip)
|
||||||
can :manage, :poll
|
|
||||||
can :manage, Depp::Contact
|
can :manage, Depp::Contact
|
||||||
can :manage, :xml_console
|
can :manage, :xml_console
|
||||||
can :manage, Depp::Domain
|
can :manage, Depp::Domain
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Poll
|
||||||
|
can :manage, :poll
|
||||||
|
|
||||||
# REPP
|
# REPP
|
||||||
can(:manage, :repp)
|
can(:manage, :repp)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue