This commit is contained in:
Martin Lensment 2015-09-15 12:12:51 +03:00
parent f7906800c4
commit 0a73f77130
2 changed files with 0 additions and 7 deletions

View file

@ -7,11 +7,5 @@ class Registrar::DashboardController < RegistrarController
elsif can?(:show, Invoice) elsif can?(:show, Invoice)
redirect_to registrar_invoices_url and return redirect_to registrar_invoices_url and return
end end
# if current_user.try(:roles) == ['billing']
# redirect_to registrar_invoices_url and return
# elsif can?(:show, :poll)
# redirect_to registrar_poll_url and return
# end
end end
end end

View file

@ -21,7 +21,6 @@ Rails.application.routes.draw do
namespace :registrar do namespace :registrar do
resource :dashboard resource :dashboard
root 'dashboard#show' root 'dashboard#show'
# root 'polls#show'
resources :invoices do resources :invoices do
member do member do