mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +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
|
@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def after_sign_in_path_for(_resource)
|
||||
return session[:user_return_to].to_s if session[:user_return_to] && session[:user_return_to] != login_path
|
||||
admin_root_path
|
||||
admin_dashboard_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue