diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-24 09:47:52 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-24 09:47:52 +0200 |
commit | 50cff3e4006ef2d57ebcb258c619a42af00bddc0 (patch) | |
tree | 1def838b68591606a1392c36af446b9b02a629cd | |
parent | 64e12d5853b44c945a43a9ed7fc7046138884426 (diff) | |
download | gitlab-ce-50cff3e4006ef2d57ebcb258c619a42af00bddc0.tar.gz |
Check for CI enabled in correct place
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/controllers/projects/application_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/projects/graphs_controller.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index e8af4c092da..48c922f450c 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -1,7 +1,6 @@ class Projects::ApplicationController < ApplicationController before_action :project before_action :repository - before_action :ci_enabled, only: :ci layout 'project' def authenticate_user! diff --git a/app/controllers/projects/graphs_controller.rb b/app/controllers/projects/graphs_controller.rb index 8bc5746a42c..418b92040bc 100644 --- a/app/controllers/projects/graphs_controller.rb +++ b/app/controllers/projects/graphs_controller.rb @@ -5,6 +5,7 @@ class Projects::GraphsController < Projects::ApplicationController before_action :require_non_empty_project before_action :assign_ref_vars before_action :authorize_download_code! + before_action :ci_enabled, only: :ci def show respond_to do |format| |