debian-mirror-gitlab/app/serializers/note_user_entity.rb
2020-04-22 19:07:51 +05:30

8 lines
191 B
Ruby

# frozen_string_literal: true
class NoteUserEntity < UserEntity
expose :gitlab_employee?, as: :is_gitlab_employee, if: ->(user, options) { user.gitlab_employee? }
unexpose :web_url
end