discourse/app/serializers/basic_group_user_serializer.rb

10 lines
218 B
Ruby

# frozen_string_literal: true
class BasicGroupUserSerializer < ApplicationSerializer
attributes :group_id, :user_id, :notification_level, :owner
def include_owner?
object.user_id == scope&.user&.id
end
end