mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-02-13 17:43:58 -05:00
Compare commits
2 Commits
2026.1.4
...
ad8aa8e2e8
| Author | SHA1 | Date | |
|---|---|---|---|
| ad8aa8e2e8 | |||
| 707abc00a9 |
4
init.rb
4
init.rb
@@ -27,13 +27,13 @@ Redmine::Plugin.register :redmine_qbo_vehicles do
|
||||
end
|
||||
|
||||
# Add safe attributes for core models
|
||||
Issue.safe_attributes 'vehicle_id'
|
||||
Issue.safe_attributes :vehicle_id
|
||||
|
||||
# Permissions for security
|
||||
permission :view_vehicles, vehicles: :new, public: false
|
||||
|
||||
# Register top menu items
|
||||
menu :top_menu, :vehicles, { controller: :vehicles, action: :index }, caption: 'Vehicles', if: Proc.new { User.current.logged? }
|
||||
menu :top_menu, :vehicles, { controller: :vehicles, action: :index }, caption: :field_vehicles, if: Proc.new { User.current.logged? }
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user