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

+3 -1
View File
@@ -1,5 +1,7 @@
<h4><%=t(:field_vehicles)%>:</h4>
<%= render partial: 'vehicles/list', locals: { vehicles: customer.vehicles.paginate(page: params[:page]), show_customer: false, show_checkbox: true } %>
<div style="float: right;">
<%= button_to t(:button_new_vehicle), new_customer_vehicle_path(customer), method: :get %>
<% if User.current.allowed_to?(:add_vehicles, nil, global: true) %>
<%= button_to t(:button_new_vehicle), new_customer_vehicle_path(customer), method: :get %>
<% end %>
</div>