From 47f81978415be48992f95f2c21163021f9cfcef1 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 19 Oct 2020 09:27:59 +0800 Subject: [PATCH] FIX ci connect database before fiter --- app/controllers/ci/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ci/base_controller.rb b/app/controllers/ci/base_controller.rb index 59dc1cb8..a74ce6ab 100644 --- a/app/controllers/ci/base_controller.rb +++ b/app/controllers/ci/base_controller.rb @@ -2,7 +2,7 @@ class Ci::BaseController < ApplicationController include Ci::DbConnectable before_action :require_login - before_action :connect_to_ci_database, if: -> { current_user && !current_user.is_a?(AnonymousUser) && current_user.devops_certification? } + before_action :connect_to_ci_database, if: -> { current_user && !current_user.is_a?(AnonymousUser) && !current_user.devops_uninit? } def load_repo namespace = params[:owner]