Only display maps link when logged in

added an if clause to the "Maps" link

closes #38
This commit is contained in:
redmine
2012-05-06 01:16:00 -04:00
parent 1c60004c4a
commit 7e223f9212

View File

@@ -7,5 +7,5 @@ Redmine::Plugin.register :redmine_exception_handler do
version '0.1.0' version '0.1.0'
url 'http://example.com/redmine/exceptionhandler' url 'http://example.com/redmine/exceptionhandler'
author_url 'http://rickbarrette.dyndns.org' 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 end