forked from Trustie/forgeplus
修复:更改查询项目判断条件
This commit is contained in:
parent
9c11cd79e8
commit
83f1263f85
|
@ -708,11 +708,17 @@ class ApplicationController < ActionController::Base
|
|||
# logger.info "###########:This is AnonymousUser"
|
||||
# @project = nil if !@project.is_public?
|
||||
# render_forbidden and return
|
||||
else
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue