This commit is contained in:
Artur Beljajev 2018-06-18 00:30:48 +03:00
parent 0b6e89dbca
commit 67ec7b1256
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,8 @@
class Registrant::ContactsController < RegistrantController class Registrant::ContactsController < RegistrantController
helper_method :domain_ids helper_method :domain_ids
def show def show
@contact = Contact.where(id: contacts).find_by(id: params[:id]) @contact = Contact.where(id: contacts).find_by(id: params[:id])
@current_user = current_user @current_user = current_user
authorize! :read, @contact authorize! :read, @contact

View file

@ -1,7 +1,6 @@
class Registrant::RegistrarsController < RegistrantController class Registrant::RegistrarsController < RegistrantController
def show def show
@registrar = Registrar.find(params[:id]) @registrar = Registrar.find(params[:id])
authorize! :read, @registrar authorize! :read, @registrar
end end
end end