summaryrefslogtreecommitdiff
path: root/app/services/merge_requests/assign_issues_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/merge_requests/assign_issues_service.rb')
-rw-r--r--app/services/merge_requests/assign_issues_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/merge_requests/assign_issues_service.rb b/app/services/merge_requests/assign_issues_service.rb
index f636e5fec4f..066efa1acc3 100644
--- a/app/services/merge_requests/assign_issues_service.rb
+++ b/app/services/merge_requests/assign_issues_service.rb
@@ -4,7 +4,7 @@ module MergeRequests
@assignable_issues ||= begin
if current_user == merge_request.author
closes_issues.select do |issue|
- !issue.assignee_id? && can?(current_user, :admin_issue, issue)
+ !issue.is_a?(ExternalIssue) && !issue.assignee_id? && can?(current_user, :admin_issue, issue)
end
else
[]