summaryrefslogtreecommitdiff
path: root/app/controllers/projects/artifacts_controller.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 16:20:11 +0200
committerPhil Hughes <me@iamphill.com>2016-06-13 11:07:23 +0100
commit7e9273dd946f46b2b2bcc0a751316dc704089a16 (patch)
tree574e3db48d3797384fad50a710e00b4a54f88898 /app/controllers/projects/artifacts_controller.rb
parent304979f89777f4aca52b382fdbe3a593dc7e50f3 (diff)
downloadgitlab-ce-7e9273dd946f46b2b2bcc0a751316dc704089a16.tar.gz
Test controllers if they allow to keep artifacts
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r--app/controllers/projects/artifacts_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index 0ab95cd9518..f11c8321464 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -1,6 +1,7 @@
class Projects::ArtifactsController < Projects::ApplicationController
layout 'project'
before_action :authorize_read_build!
+ before_action :authorize_update_build!, only: [:keep]
before_action :validate_artifacts!
def download