gitlab-org--gitlab-foss/app/serializers/merge_request_assignee_entity.rb
2019-04-08 18:40:00 -03:00

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