Merge pull request #1672 from internetee/fix-poll-requests-auth

Remove whitelist checking from poll ability
This commit is contained in:
Alex Sherman 2020-09-04 14:49:20 +05:00 committed by GitHub
commit 0452855835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,12 +32,14 @@ class Ability
def epp # Registrar/api_user dynamic role
if @user.registrar.api_ip_white?(@ip)
can :manage, :poll
can :manage, Depp::Contact
can :manage, :xml_console
can :manage, Depp::Domain
end
# Poll
can :manage, :poll
# REPP
can(:manage, :repp)