Ensure single user is a local user (fixes #8154) (#8157)

lolsob-rspec
ThibG 2018-08-11 11:53:10 +02:00 committed by Eugen Rochko
parent 92ae613358
commit 1d3b39e106
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class HomeController < ApplicationController
if request.path.start_with?('/web') if request.path.start_with?('/web')
new_user_session_path new_user_session_path
elsif single_user_mode? elsif single_user_mode?
short_account_path(Account.first) short_account_path(Account.local.where(suspended: false).first)
else else
about_path about_path
end end