From 7e223f92122d98f136d4fda32d63907c12da4765 Mon Sep 17 00:00:00 2001 From: redmine Date: Sun, 6 May 2012 01:16:00 -0400 Subject: [PATCH] Only display maps link when logged in added an if clause to the "Maps" link closes #38 --- init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.rb b/init.rb index f711376..fd93f2e 100644 --- a/init.rb +++ b/init.rb @@ -7,5 +7,5 @@ Redmine::Plugin.register :redmine_exception_handler do version '0.1.0' url 'http://example.com/redmine/exceptionhandler' author_url 'http://rickbarrette.dyndns.org' - menu :top_menu, :maps, { :controller => 'maps', :action => 'index' }, :caption => 'Maps', :before => :help + menu :top_menu, :maps, { :controller => 'maps', :action => 'index' }, :caption => 'Maps', :before => :help, :if => Proc.new { User.current.logged? } end