2016-11-25 15:26:49 +08:00
|
|
|
class BasicGroupUserSerializer < ApplicationSerializer
|
2017-07-21 14:12:24 +08:00
|
|
|
attributes :group_id, :user_id, :notification_level, :owner
|
|
|
|
|
|
|
|
def include_owner?
|
|
|
|
object.user_id == scope&.user&.id
|
|
|
|
end
|
2016-11-25 15:26:49 +08:00
|
|
|
end
|