diff options
author | Andrew Johnson <ajohnson@draster.com> | 2016-01-15 02:29:34 -0800 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-15 12:01:19 +0100 |
commit | f66f9e95bf1e67ad13de9958d16103b858b58e72 (patch) | |
tree | 16d511865ed6ba5f3eba29de8366d046cf8157f1 /app/controllers/projects/builds_controller.rb | |
parent | f093d8ccb4101e160bf2a89ec1f9ebe9d73f84fc (diff) | |
download | gitlab-ce-f66f9e95bf1e67ad13de9958d16103b858b58e72.tar.gz |
Give reporters the ability to download artifacts.
Also fix a few places where page_404 should be render_404.
Diffstat (limited to 'app/controllers/projects/builds_controller.rb')
-rw-r--r-- | app/controllers/projects/builds_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb index 0e965966ffa..92d9699fe84 100644 --- a/app/controllers/projects/builds_controller.rb +++ b/app/controllers/projects/builds_controller.rb @@ -42,7 +42,7 @@ class Projects::BuildsController < Projects::ApplicationController def retry unless @build.retryable? - return page_404 + return render_404 end build = Ci::Build.retry(@build) @@ -72,7 +72,7 @@ class Projects::BuildsController < Projects::ApplicationController def authorize_manage_builds! unless can?(current_user, :manage_builds, project) - return page_404 + return render_404 end end end |