Skip to content

Commit

Permalink
fix(sales): cancel not showing for employee
Browse files Browse the repository at this point in the history
  • Loading branch information
repparw committed Nov 16, 2024
1 parent bbef7f3 commit 8a7bbc6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/views/admin/sales/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,13 @@
</div>
</div>

<% if current_user.admin? || (current_user.manager? && !current_user.admin?) %>
<div class="mt-4 flex justify-end space-x-2">
<% if sale.active? %>
<%= button_to 'Cancelar', cancel_admin_sale_path(sale),
method: :patch,
class: 'text-red-500 dark:text-red-400 hover:underline ml-2' %>
<% end %>
</div>
<% end %>
</div>
<% end %>
<% end %>
Expand Down

0 comments on commit 8a7bbc6

Please sign in to comment.