Test Project Validate Failed13

This commit is contained in:
sylor_huang@126.com 2020-08-24 14:19:32 +08:00
parent 5a065d83b7
commit 79bc2655b7
1 changed files with 2 additions and 2 deletions

View File

@ -749,7 +749,7 @@ class ApplicationController < ActionController::Base
if @project and current_user.can_read_project?(@project) if @project and current_user.can_read_project?(@project)
logger.info "########### has project and can read project" logger.info "########### has project and can read project"
@project and return @project
elsif current_user.is_a?(AnonymousUser) elsif current_user.is_a?(AnonymousUser)
logger.info "###########This is AnonymousUser" logger.info "###########This is AnonymousUser"
@project = nil if !@project.is_public? @project = nil if !@project.is_public?
@ -759,7 +759,7 @@ class ApplicationController < ActionController::Base
@project = nil @project = nil
render_not_found and return render_not_found and return
end end
# @project @project
end end
def load_repository def load_repository