Check for CI enabled in correct place
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
64e12d5853
commit
50cff3e400
|
@ -1,7 +1,6 @@
|
||||||
class Projects::ApplicationController < ApplicationController
|
class Projects::ApplicationController < ApplicationController
|
||||||
before_action :project
|
before_action :project
|
||||||
before_action :repository
|
before_action :repository
|
||||||
before_action :ci_enabled, only: :ci
|
|
||||||
layout 'project'
|
layout 'project'
|
||||||
|
|
||||||
def authenticate_user!
|
def authenticate_user!
|
||||||
|
|
|
@ -5,6 +5,7 @@ class Projects::GraphsController < Projects::ApplicationController
|
||||||
before_action :require_non_empty_project
|
before_action :require_non_empty_project
|
||||||
before_action :assign_ref_vars
|
before_action :assign_ref_vars
|
||||||
before_action :authorize_download_code!
|
before_action :authorize_download_code!
|
||||||
|
before_action :ci_enabled, only: :ci
|
||||||
|
|
||||||
def show
|
def show
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Reference in New Issue