Fix comments related to BE part

- Edit commit messge body to fix "danger-review"
This commit is contained in:
Igor Drozdov 2019-08-19 11:34:19 +03:00 committed by Paul Slaughter
parent 4e3c7a0bab
commit 96b994bd05
No known key found for this signature in database
GPG Key ID: DF5690803C68282A
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,9 @@
# frozen_string_literal: true
class MergeRequestSidebarBasicEntity < IssuableSidebarBasicEntity
expose :current_user, if: lambda { |_issuable| current_user } do
expose :can_merge do |merge_request|
merge_request.can_be_merged_by?(current_user)
end
end
end
MergeRequestSidebarBasicEntity.prepend_if_ee('EE::MergeRequestSidebarBasicEntity')

View File

@ -2,6 +2,7 @@
"type": "object",
"properties" : {
"id": { "type": "integer" },
"iid": { "type": "integer" },
"type": { "type": "string" },
"author_id": { "type": "integer" },
"project_id": { "type": "integer" },