about summary refs log tree commit diff
path: root/app/presenters/initial_state_presenter.rb
blob: b87cff51e10a720d5b6e394420914aaa2241d6cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class InitialStatePresenter < ActiveModelSerializers::Model
  attributes :settings, :push_subscription, :token,
             :current_account, :admin, :owner, :text, :visibility,
             :disabled_account, :moved_to_account

  def role
    current_account&.user_role
  end
end