mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Cleanup #2713
This commit is contained in:
parent
f7906800c4
commit
0a73f77130
2 changed files with 0 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue