リビジョン 517decb4
| init.rb | ||
|---|---|---|
|
Rails.configuration.to_prepare do
|
||
|
require_dependency "glossary_macros"
|
||
|
Redmine::Activity.register :glossary_terms
|
||
|
Redmine::Search.available_search_types << 'glossary_terms'
|
||
|
end
|
||
|
|
||
|
Redmine::Plugin.register :redmine_glossary do
|
||
| ... | ... | |
|
|
||
|
|
||
|
project_module :glossary do
|
||
|
permission :view_glossary, {
|
||
|
permission :view_glossary_terms, {
|
||
|
glossary_terms: [:index, :show],
|
||
|
glossary_categories: [:index, :show]
|
||
|
}
|
||
|
permission :manage_glossary, {
|
||
|
permission :manage_glossary_terms, {
|
||
|
glossary_terms: [:new, :create, :edit, :update, :destroy],
|
||
|
glossary_categories: [:new, :create, :edit, :update, :destroy],
|
||
|
},
|
||
| ... | ... | |
|
param: :project_id
|
||
|
|
||
|
end
|
||
|
|
||
|
|
||
|
Redmine::Activity.register :glossary_terms
|
||
[phase-22]Make it possible to search from redmine global search function.