mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-10-04 01:10:43 -04:00
Implement global permissions for vehicle actions and update version to 2026.9.0
This commit is contained in:
1 parent
849dcabff7
commit
df41436e61
5 files changed
+27
-13
No files matched your search
@@ -1,9 +1,11 @@
|
||||
<% if appointment.customer.present? %>
|
||||
<% unless appointment.vehicle.present? &&%>
|
||||
<p>
|
||||
<%= link_to new_vehicle_path(customer_id: appointment.customer_id), class: 'icon icon-add' do %>
|
||||
<%= l(:label_add_vehicle) %>
|
||||
<% if <% if User.current.allowed_to?(:add_vehicles, nil, global: true) %> %>
|
||||
<% if appointment.customer.present? %>
|
||||
<% unless appointment.vehicle.present? &&%>
|
||||
<p>
|
||||
<%= link_to new_vehicle_path(customer_id: appointment.customer_id), class: 'icon icon-add' do %>
|
||||
<%= l(:label_add_vehicle) %>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user