Browse Source

FIX ci connect database before fiter

tags/v1.0.0
Jasder 5 years ago
parent
commit
47f8197841
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/ci/base_controller.rb

+ 1
- 1
app/controllers/ci/base_controller.rb View File

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


Loading…
Cancel
Save