internetee-registry/app/controllers/registrar/dashboard_controller.rb
Martin Lensment 0a73f77130 Cleanup #2713
2015-09-15 12:12:51 +03:00

11 lines
280 B
Ruby

class Registrar::DashboardController < RegistrarController
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