Merge branch 'develop' into standalone_develop

This commit is contained in:
viletyy 2022-10-14 15:02:53 +08:00
commit 2df259c927
2 changed files with 10 additions and 4 deletions

View File

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

View File

@ -13,7 +13,7 @@
# #
class MessageTemplate < ApplicationRecord class MessageTemplate < ApplicationRecord
self.inheritance_column = nil # self.inheritance_column = nil
PLATFORM = 'GitLink' PLATFORM = 'GitLink'
def self.build_init_data def self.build_init_data