From 3586952a8947ff796c0928cf45b9316524d9c9a9 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Mon, 24 Aug 2020 14:16:11 +0800 Subject: [PATCH] Test Project Validate Failed1 --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7e474f549..7024e7c7e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -749,7 +749,7 @@ class ApplicationController < ActionController::Base if @project and current_user.can_read_project?(@project) logger.info "###########: has project and can read project" - @project + @project and return elsif current_user.is_a?(AnonymousUser) logger.info "###########:This is AnonymousUser" @project = nil if !@project.is_public? @@ -759,7 +759,7 @@ class ApplicationController < ActionController::Base @project = nil render_not_found and return end - @project + # @project end def load_repository