Only display maps link when logged in
added an if clause to the "Maps" link closes #38
This commit is contained in:
2
init.rb
2
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
|
||||
|
||||
Reference in New Issue
Block a user