mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Added some permissions
view_customers, add_customers, view_payments, add_payments
This commit is contained in:
5
init.rb
5
init.rb
@@ -48,6 +48,11 @@ Redmine::Plugin.register :redmine_qbo do
|
||||
# set per_page globally
|
||||
WillPaginate.per_page = 10
|
||||
|
||||
permission :view_customers, :customers => :index
|
||||
permission :add_customers, :customers => :new
|
||||
permission :view_payments, :payments => :index
|
||||
permission :add_payments, :payments => :new
|
||||
|
||||
# Register QBO top menu item
|
||||
#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? }
|
||||
|
||||
Reference in New Issue
Block a user