diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2018-04-25 18:43:55 +0100 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2018-04-27 11:34:44 -0400 |
commit | 6ec67a69a815ba13bc0af93e9f54070595901d43 (patch) | |
tree | 139def3dc4aeef82e73832cad8927c68ad557bcc /lib | |
parent | 328fe185d17fe395d2ee1042223b411485847f9d (diff) |
hide 'projects' and 'help' menus from normal users
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 7773e3875..dfc4edf19 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -189,9 +189,9 @@ end Redmine::MenuManager.map :top_menu do |menu| menu.push :home, :home_path menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } - menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural + menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural, :if => Proc.new { User.current.is_vip? } menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true - menu.push :help, Redmine::Info.help_url, :last => true + menu.push :help, Redmine::Info.help_url, :if => Proc.new { User.current.is_vip? }, :last => true end Redmine::MenuManager.map :account_menu do |menu| |