Added Permission Check

This commit is contained in:
2017-04-04 22:26:58 -04:00
committed by GitHub
parent e4d770c272
commit 1a043bea76

View File

@@ -4,7 +4,7 @@
<%= text_field_tag :search, params[:search], placeholder: "Search Customers" %>
<%= submit_tag "Search" %>
<% end %>
<%= button_to "New Customer", new_customer_path, method: :get%>
<%= button_to("New Customer", new_customer_path, method: :get) if allowed_to?(:add_customers)%>
<br/>
<% if @customers.present? %>
<br/>