2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 13:27:11 -04:00
|
|
|
class NoteUserEntity < UserEntity
|
2020-03-20 20:09:18 -04:00
|
|
|
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
|