debian-mirror-gitlab/app/serializers/note_user_entity.rb

8 lines
191 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
class NoteUserEntity < UserEntity
2020-04-22 19:07:51 +05:30
expose :gitlab_employee?, as: :is_gitlab_employee, if: ->(user, options) { user.gitlab_employee? }
2018-03-17 18:26:18 +05:30
unexpose :web_url
end