Only show sync button if User is an admin

This commit is contained in:
2022-03-06 16:49:07 -05:00
parent 8b4a46f7eb
commit fe06fccacd

View File

@@ -3,4 +3,4 @@
<%= submit_tag t(:label_search) %>
<% end %>
<%= button_to t(:label_new_customer), new_customer_path, method: :get%>
<%= button_to t(:label_sync), qbo_sync_path, method: :get%>
<%= button_to(t(:label_sync), qbo_sync_path, method: :get) if User.current.admin?%>