diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b9961dc5..f99bff34 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -59,7 +59,7 @@ class ApplicationController < ActionController::Base sign_out(current_user) mail = User.admin.first ? User.admin.first.email : 'the admin!' flash[:error] = "This User is disabled. Please contact #{mail}!" - redirect_to root_path + redirect_to User.ichain_logout_url end def not_found