Implement global permissions for vehicle actions and update version to 2026.9.0

This commit is contained in:
ricky committed 2026-09-08 22:56:47 -04:00
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 %>