mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Hide links when no rights, dashboard redirects to domains
This commit is contained in:
parent
127a4fc28e
commit
a4ebb24a03
3 changed files with 13 additions and 7 deletions
|
@ -1,5 +1,7 @@
|
|||
class Admin::DashboardsController < AdminController
|
||||
authorize_resource class: false
|
||||
|
||||
def show; end
|
||||
def show
|
||||
redirect_to [:admin, :domains] if can? :show, Domain
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue