0
0
Fork 0

Change sign-in banner to reflect disabled or moved account status (#19773)

This commit is contained in:
Claire 2022-11-05 18:28:13 +01:00 committed by GitHub
parent 0498b106c9
commit 312d616371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 127 additions and 3 deletions

View file

@ -211,6 +211,11 @@ module ApplicationHelper
state_params[:admin] = Account.find_local(Setting.site_contact_username.strip.gsub(/\A@/, ''))
end
if user_signed_in? && !current_user.functional?
state_params[:disabled_account] = current_account
state_params[:moved_to_account] = current_account.moved_to_account
end
if single_user_mode?
state_params[:owner] = Account.local.without_suspended.where('id > 0').first
end