mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-12-30 06:31:00 -05:00
Added some permissions
view_customers, add_customers, view_payments, add_payments
This commit is contained in:
7
init.rb
7
init.rb
@@ -47,7 +47,12 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
|
|
||||||
# set per_page globally
|
# set per_page globally
|
||||||
WillPaginate.per_page = 10
|
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
|
# Register QBO top menu item
|
||||||
#menu :top_menu, :qbo, { :controller => :qbo, :action => :index }, :caption => 'Quickbooks', :if => Proc.new { User.current.admin? }
|
#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, :customers, { :controller => :customers, :action => :index }, :caption => 'Customers', :if => Proc.new { User.current.logged? }
|
||||||
|
|||||||
Reference in New Issue
Block a user