Commit cf3363bd authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '7038-create-issue-regression-ee' into 'master'

Resolve "Cannot create issue from Security Reports in MR widget"

Closes #7038

See merge request gitlab-org/gitlab-ee!6708
parents 7feab518 467e8c2f
......@@ -134,6 +134,10 @@ class MergeRequestWidgetEntity < IssuableEntity
can?(request.current_user, :create_note, merge_request)
end
expose :can_create_issue do |merge_request|
can?(current_user, :create_issue, merge_request.project)
end
expose :can_update do |merge_request|
can?(request.current_user, :update_merge_request, merge_request)
end
......
---
title: Ensure that Create issue button is shown in vulnerability dialog
merge_request: 6708
author:
type: fixed
......@@ -82,6 +82,7 @@
"can_revert_on_current_merge_request": { "type": ["boolean", "null"] },
"can_cherry_pick_on_current_merge_request": { "type": ["boolean", "null"] },
"can_create_note": { "type": "boolean" },
"can_create_issue": { "type": "boolean" },
"can_update": { "type": "boolean" }
},
"additionalProperties": false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment