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

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

  def role
    current_account&.user_role
  end
end