From aa89103669cfc8bd7876d5b817faaddf9f824a62 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Wed, 23 Sep 2020 11:15:14 +0800 Subject: [PATCH] FIX connection ci database add condition --- 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 13ff46410..57f6cdf4c 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 + before_action :connect_to_ci_database, if: -> { current_user && !current_user.is_a?(AnonymousUser) && current_user.devops_unverified? } def load_repo namespace = params[:owner]