gitlab-org--gitlab-foss/app/serializers/note_user_entity.rb

8 lines
237 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-08-17 13:27:11 -04:00
class NoteUserEntity < UserEntity
expose :gitlab_employee?, as: :is_gitlab_employee, if: ->(user, options) { ::Feature.enabled?(:gitlab_employee_badge) && user.gitlab_employee? }
2017-08-17 13:27:11 -04:00
unexpose :web_url
end