From 8a7bbc682451c21c9d2924a2be89adc9c42eef98 Mon Sep 17 00:00:00 2001 From: repparw Date: Sat, 16 Nov 2024 20:29:52 -0300 Subject: [PATCH] fix(sales): cancel not showing for employee --- app/views/admin/sales/index.html.erb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/views/admin/sales/index.html.erb b/app/views/admin/sales/index.html.erb index 6c048d1..0cd5353 100644 --- a/app/views/admin/sales/index.html.erb +++ b/app/views/admin/sales/index.html.erb @@ -61,7 +61,6 @@ - <% if current_user.admin? || (current_user.manager? && !current_user.admin?) %>
<% if sale.active? %> <%= button_to 'Cancelar', cancel_admin_sale_path(sale), @@ -69,7 +68,6 @@ class: 'text-red-500 dark:text-red-400 hover:underline ml-2' %> <% end %>
- <% end %> <% end %> <% end %>