提交 88a5d6f3 编写于 作者: W Winnie Hellmann

Apply suggestion to lib/api/pipelines.rb

上级 4d8d7773
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册