2019-07-31 22:56:46 +05:30
|
|
|
# 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-24 23:13:21 +05:30
|
|
|
|
|
|
|
MergeRequestAssigneeEntity.prepend_if_ee('EE::MergeRequestAssigneeEntity')
|