修复:更改查询项目判断条件

This commit is contained in:
yystopf 2022-10-14 14:52:25 +08:00
parent 9c11cd79e8
commit 83f1263f85
1 changed files with 9 additions and 3 deletions

View File

@ -709,9 +709,15 @@ class ApplicationController < ActionController::Base
# @project = nil if !@project.is_public?
# render_forbidden and return
else
logger.info "###########project not found"
@project = nil
render_not_found and return
if @project.present?
logger.info "########### has project and but can't read project"
@project = nil
render_forbidden and return
else
logger.info "###########project not found"
@project = nil
render_not_found and return
end
end
@project
end