mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 02:09:39 +02:00
Removed admin check for temp
This commit is contained in:
parent
f0e0d6f76c
commit
ed886eb3e9
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if ENV['REGISTRY_ENV'] == 'admin' && resource.admin?
|
if resource.admin?
|
||||||
(session[:user_return_to].nil?) ? admin_root_path : session[:user_return_to].to_s
|
(session[:user_return_to].nil?) ? admin_root_path : session[:user_return_to].to_s
|
||||||
else
|
else
|
||||||
(session[:user_return_to].nil?) ? client_root_path : session[:user_return_to].to_s
|
(session[:user_return_to].nil?) ? client_root_path : session[:user_return_to].to_s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue