diff options
author | Can Eldem <celdem@gitlab.com> | 2019-09-05 20:03:40 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-09-05 20:03:40 +0300 |
commit | 46f6a4e0777124b893dad80cb9e38de4a7f2f7f5 (patch) | |
tree | 7a9483a4dbcd244b5b643f4d1a46855bc3fc417b /app | |
parent | 5f813436d9bb01fc82459aea4dee0704590fd763 (diff) |
Extend License Compliance entity for Pipelines and MR view
Diffstat (limited to 'app')
-rw-r--r-- | app/models/merge_request.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index bc98ae0ce28..95daa48d4bc 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -1238,9 +1238,9 @@ class MergeRequest < ApplicationRecord compare_reports(Ci::CompareTestReportsService) end - def compare_reports(service_class) + def compare_reports(service_class, current_user = nil) with_reactive_cache(service_class.name) do |data| - unless service_class.new(project) + unless service_class.new(project, current_user) .latest?(base_pipeline, actual_head_pipeline, data) raise InvalidateReactiveCache end |