From 50cff3e4006ef2d57ebcb258c619a42af00bddc0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 24 Sep 2015 09:47:52 +0200 Subject: [PATCH] Check for CI enabled in correct place Signed-off-by: Dmitriy Zaporozhets --- app/controllers/projects/application_controller.rb | 1 - app/controllers/projects/graphs_controller.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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|