Project

General

Profile

Feature #24808 » fix-plugin-permissions-are-not-loaded.patch

Katsuya HIDAKA, 2025-06-19 08:40

View differences:

config/initializers/30-redmine.rb
ActiveSupport::XmlMini.backend = 'Nokogiri'
Redmine::Preparation.prepare
end
# Load the secret token from the Redmine configuration file
secret = Redmine::Configuration['secret_token']
if secret.present?
RedmineApp::Application.config.secret_token = secret
end
Redmine::PluginLoader.load
Rails.application.config.to_prepare do
Doorkeeper.configure do
orm :active_record
......
Doorkeeper::AuthorizationsController.layout "base"
Doorkeeper::AuthorizedApplicationsController.layout "base"
Doorkeeper::AuthorizedApplicationsController.main_menu = false
end
# Load the secret token from the Redmine configuration file
secret = Redmine::Configuration['secret_token']
if secret.present?
RedmineApp::Application.config.secret_token = secret
end
Redmine::PluginLoader.load
Rails.application.config.to_prepare do
default_paths = []
default_paths << Rails.root.join("app/assets/javascripts")
default_paths << Rails.root.join("app/assets/images")
(28-28/28)