From 1d3b39e1062dd47955af53664c16dbf50277e439 Mon Sep 17 00:00:00 2001 From: ThibG Date: Sat, 11 Aug 2018 11:53:10 +0200 Subject: [PATCH] Ensure single user is a local user (fixes #8154) (#8157) --- app/controllers/home_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index b71424107b..b5d6460f9f 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -58,7 +58,7 @@ class HomeController < ApplicationController if request.path.start_with?('/web') new_user_session_path elsif single_user_mode? - short_account_path(Account.first) + short_account_path(Account.local.where(suspended: false).first) else about_path end