diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-09-17 09:26:49 +0000 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-09-17 09:26:49 +0000 |
commit | 88a5d6f3d907ffa970dcaa1d51b651e0664630a1 (patch) | |
tree | 931d3ef9639edded40704ba90cff1ed1d11561ab | |
parent | 4d8d7773f5578c32bf239b444bd2bc563ca321e7 (diff) | |
download | gitlab-ce-winh-pipelines-test-reports-api.tar.gz |
Apply suggestion to lib/api/pipelines.rbwinh-pipelines-test-reports-api
-rw-r--r-- | lib/api/pipelines.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/pipelines.rb b/lib/api/pipelines.rb index 38eab13d073..e966b0ece37 100644 --- a/lib/api/pipelines.rb +++ b/lib/api/pipelines.rb @@ -103,7 +103,7 @@ module API requires :pipeline_id, type: Integer, desc: 'The pipeline ID' end get ':id/pipelines/:pipeline_id/test_reports' do - authorize! :read_pipeline_variable, pipeline + authorize_read_builds! present pipeline.test_reports.test_suites.values, with: Entities::TestSuite end |