Redirect to main_app_root_path
This commit is contained in:
parent
8475cd1926
commit
979ebb76fd
|
@ -1,5 +1,5 @@
|
|||
RailsAdmin.config do |config|
|
||||
config.authenticate_with do
|
||||
redirect_to '/' unless signed_in? && current_user.admin?
|
||||
redirect_to main_app_root_path unless signed_in? && current_user.admin?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue