about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-11 11:53:10 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-08-11 11:53:10 +0200
commit44680c46ed55065d73f6fc64e349b39fa57673e9 (patch)
tree397321d1711eede8ff9b96a08138ce68ae855b49 /app/controllers
parent7b5ea7270db8de2a57e3a93dad4aaa5cd46d2d99 (diff)
Ensure single user is a local user (fixes #8154) (#8157)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/home_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index b71424107..b5d6460f9 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