2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-25 02:26:49 -05:00
|
|
|
class BasicGroupUserSerializer < ApplicationSerializer
|
2017-07-21 02:12:24 -04:00
|
|
|
attributes :group_id, :user_id, :notification_level, :owner
|
|
|
|
|
|
|
|
def include_owner?
|
|
|
|
object.user_id == scope&.user&.id
|
|
|
|
end
|
2016-11-25 02:26:49 -05:00
|
|
|
end
|