This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-07-08 14:51:05 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class InitialStatePresenter < ActiveModelSerializers::Model
|
2017-08-14 04:53:31 +02:00
|
|
|
attributes :settings, :push_subscription, :token,
|
2020-06-09 00:16:30 +02:00
|
|
|
:current_account, :admin, :text, :visibility
|
2022-07-05 02:41:40 +02:00
|
|
|
|
|
|
|
def role
|
|
|
|
current_account&.user_role
|
|
|
|
end
|
2017-07-08 14:51:05 +02:00
|
|
|
end
|