Check for CI enabled in correct place

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-09-24 09:47:52 +02:00
parent 64e12d5853
commit 50cff3e400
No known key found for this signature in database
GPG Key ID: 161B5D6A44D3D88A
2 changed files with 1 additions and 1 deletions

View File

@ -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!

View File

@ -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|