mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
13 lines
304 B
Ruby
13 lines
304 B
Ruby
class Registrar
|
|
class DashboardController < BaseController
|
|
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
|