Update init.rb

Check to see if the current user is an admin
This commit is contained in:
2016-04-18 12:30:56 -04:00
parent f10114d43c
commit 9cd5440bc8

View File

@@ -42,6 +42,6 @@ Redmine::Plugin.register :redmine_qbo do
#Quickbooks.sandbox_mode = true
# Register QBO top menu item
menu :top_menu, :qbo, { :controller => 'qbo', :action => 'index' }, :caption => 'Quickbooks'
menu :top_menu, :qbo, { :controller => 'qbo', :action => 'index' }, :caption => 'Quickbooks', :if => Proc.new { User.current.is_admin? }
end