diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-14 15:10:35 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-11-17 21:34:23 +0100 |
commit | 53271b486d296fae2e290d6948a05aeb47dbea89 (patch) | |
tree | 8ee12e07be37d1bf7251d570996a2575c93538b9 /app/controllers | |
parent | 4762198959fbc2bc22981749313955b65c6d6026 (diff) | |
download | gitlab-ce-53271b486d296fae2e290d6948a05aeb47dbea89.tar.gz |
Make chat authorization to work [ci skip]
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/services_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/services_controller.rb b/app/controllers/projects/services_controller.rb index 40a23a6f806..30c2a5d9982 100644 --- a/app/controllers/projects/services_controller.rb +++ b/app/controllers/projects/services_controller.rb @@ -28,6 +28,8 @@ class Projects::ServicesController < Projects::ApplicationController end def test + return render_404 unless @service.can_test? + data = @service.test_data(project, current_user) outcome = @service.test(data) |