From fa9731be16d01ba8afc32c196047ca731e81b666 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 20 Jun 2018 12:21:44 +0300 Subject: [PATCH] Remove redirection --- app/controllers/registrar/dashboard_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/registrar/dashboard_controller.rb b/app/controllers/registrar/dashboard_controller.rb index 80b3f530b..468c7513a 100644 --- a/app/controllers/registrar/dashboard_controller.rb +++ b/app/controllers/registrar/dashboard_controller.rb @@ -3,11 +3,6 @@ class Registrar authorize_resource class: false def show - if can?(:show, :poll) - redirect_to registrar_poll_url and return - elsif can?(:show, Invoice) - redirect_to registrar_invoices_url and return - end end end -end +end \ No newline at end of file