Browse Source

Merge branch 'develop' into standalone_develop

pull/313/head
viletyy 3 years ago
parent
commit
2df259c927
2 changed files with 10 additions and 4 deletions
  1. +9
    -3
      app/controllers/application_controller.rb
  2. +1
    -1
      app/models/message_template.rb

+ 9
- 3
app/controllers/application_controller.rb View File

@@ -704,9 +704,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


+ 1
- 1
app/models/message_template.rb View File

@@ -13,7 +13,7 @@
#

class MessageTemplate < ApplicationRecord
self.inheritance_column = nil
# self.inheritance_column = nil
PLATFORM = 'GitLink'

def self.build_init_data


Loading…
Cancel
Save