From fc53f173d95a8e9420257b051ebe2ea207a372f7 Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Thu, 14 May 2015 23:54:32 +0300 Subject: [PATCH] changed registrant whois ability --- app/controllers/registrant/whois_controller.rb | 2 +- app/models/ability.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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