2019-04-07 14:35:16 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class MergeRequestAssigneeEntity < ::API::Entities::UserBasic
|
|
|
|
expose :can_merge do |assignee, options|
|
|
|
|
options[:merge_request]&.can_be_merged_by?(assignee)
|
|
|
|
end
|
|
|
|
end
|
2020-05-12 08:09:47 -04:00
|
|
|
|
|
|
|
MergeRequestAssigneeEntity.prepend_if_ee('EE::MergeRequestAssigneeEntity')
|