Removed admin check for temp

This commit is contained in:
Priit Tamboom 2014-10-07 10:33:00 +03:00
parent f0e0d6f76c
commit ed886eb3e9

View file

@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
end
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
else
(session[:user_return_to].nil?) ? client_root_path : session[:user_return_to].to_s