From feb357b9a417ad4e651c1f8b8e9abf8ae19ee279 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 9 Sep 2026 21:39:59 -0400 Subject: [PATCH] Fix syntax error in permission check for adding vehicles --- app/views/customer_appointments/_show_hook.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/customer_appointments/_show_hook.html.erb b/app/views/customer_appointments/_show_hook.html.erb index cb13867..e112378 100644 --- a/app/views/customer_appointments/_show_hook.html.erb +++ b/app/views/customer_appointments/_show_hook.html.erb @@ -1,4 +1,4 @@ -<% if <% if User.current.allowed_to?(:add_vehicles, nil, global: true) %> %> +<% if User.current.allowed_to?(:add_vehicles, nil, global: true) %> <% if appointment.customer.present? %> <% unless appointment.vehicle.present? &&%>