From ed886eb3e93c6912f4834a68f4fb7c3b22d7b438 Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Tue, 7 Oct 2014 10:33:00 +0300 Subject: [PATCH] Removed admin check for temp --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index eba2d86db..01d480d1d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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