Remove whitelist checking from poll ability

This commit is contained in:
Alex Sherman 2020-09-04 14:00:01 +05:00
parent bfa60a9c17
commit e428ab9b27

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)