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
8 changed files with 127 additions and 3 deletions

View File

@@ -2,7 +2,8 @@
class InitialStatePresenter < ActiveModelSerializers::Model
attributes :settings, :push_subscription, :token,
:current_account, :admin, :owner, :text, :visibility
:current_account, :admin, :owner, :text, :visibility,
:disabled_account, :moved_to_account
def role
current_account&.user_role