discourse/app/serializers/web_hook_user_serializer.rb

10 lines
162 B
Ruby
Raw Normal View History

class WebHookUserSerializer < UserSerializer
# remove staff attributes
def staff_attributes(*attrs)
end
def include_email?
scope.is_admin?
end
end