diff --git a/app/controllers/registrant/whois_controller.rb b/app/controllers/registrant/whois_controller.rb index 3e437fe5d..71d29dd76 100644 --- a/app/controllers/registrant/whois_controller.rb +++ b/app/controllers/registrant/whois_controller.rb @@ -1,5 +1,5 @@ class Registrant::WhoisController < RegistrantController def index - authorize! :view, Registrant::Whois + authorize! :view, :registrant_whois end end diff --git a/app/models/ability.rb b/app/models/ability.rb index 38ddd5893..6cb72294f 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -65,7 +65,7 @@ class Ability end def registrant - can :manage, Registrant::Whois + can :manage, :registrant_whois end def user