Browse Source

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

pull/313/head
yystopf 3 years ago
parent
commit
83f1263f85
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      app/controllers/application_controller.rb

+ 9
- 3
app/controllers/application_controller.rb 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


Loading…
Cancel
Save