mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
Added admin check to admin menu item
This commit is contained in:
parent
4cb99b58f2
commit
1ba92b5703
3
init.rb
3
init.rb
@ -47,7 +47,8 @@ Redmine::Plugin.register :redmine_custom_workflows do
|
||||
version '0.1.6'
|
||||
url 'http://www.redmine.org/plugins/custom-workflows'
|
||||
|
||||
menu :admin_menu, :custom_workflows, {:controller => 'custom_workflows', :action => 'index'}, :caption => :label_custom_workflow_plural
|
||||
menu :admin_menu, :custom_workflows, {:controller => 'custom_workflows', :action => 'index'},
|
||||
:if => Proc.new { User.current.admin? }, :caption => :label_custom_workflow_plural
|
||||
|
||||
permission :manage_project_workflow, {}, :require => :member
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user