BigW Consortium Gitlab

Commit 01a406f5 by Grzegorz Bizon

Render 404 if there is no project for old CI status badge

parent a2f61368
......@@ -17,6 +17,7 @@ module Ci
# with projects migrated from GitLab CI.
#
def badge
return render_404 unless @project
image = Ci::ImageForBuildService.new.execute(@project, params)
send_file image.path, filename: image.name, disposition: 'inline', type:"image/svg+xml"
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment