ca884980ee
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
7 lines
203 B
Ruby
7 lines
203 B
Ruby
# 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
|