diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-05 18:28:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 18:28:13 +0100 |
commit | 312d616371096235f1f317041300b8220c447613 (patch) | |
tree | 5cadb0f45adb1eb9096528db331209240e753968 /app/helpers | |
parent | 0498b106c9d632d761dc556e9d471eb6aec846c5 (diff) |
Change sign-in banner to reflect disabled or moved account status (#19773)
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8706f5c2a..4c20f1e14 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 |