From 276c89d4ac3e3bafc9f00102b5d2a50239a054e1 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 4 Aug 2016 09:59:12 -0400 Subject: [PATCH] Update init.rb --- init.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.rb b/init.rb index 8e06dc6..8d365c0 100644 --- a/init.rb +++ b/init.rb @@ -46,9 +46,10 @@ Redmine::Plugin.register :redmine_qbo do WillPaginate.per_page = 10 # Register QBO top menu item - menu :top_menu, :qbo, { :controller => :qbo, :action => :index }, :caption => 'Quickbooks', :if => Proc.new { User.current.admin? } - #menu :top_menu, :vehicles, { :controller => :vehicles, :action => :index }, :caption => 'Vehicles', :if => Proc.new { User.current.logged? } + #menu :top_menu, :qbo, { :controller => :qbo, :action => :index }, :caption => 'Quickbooks', :if => Proc.new { User.current.admin? } menu :top_menu, :customers, { :controller => :customers, :action => :index }, :caption => 'Customers', :if => Proc.new { User.current.logged? } + menu :top_menu, :vehicles, { :controller => :vehicles, :action => :index }, :caption => 'Vehicles', :if => Proc.new { User.current.logged? } + menu :application_menu, :new_customer, { :controller => :customers, :action => :new }, :caption => 'New Customer', :if => Proc.new { User.current.logged? } permission :customers, { :customers => [:index, :new] }, :public => false