summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/api/pipelines.rb2
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