discourse/app/serializers/web_hook_group_serializer.rb

15 lines
218 B
Ruby

# frozen_string_literal: true
class WebHookGroupSerializer < BasicGroupSerializer
%i{
is_group_user
is_group_owner
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end