check role for = split

This commit is contained in:
phyusin
2018-02-23 14:06:35 +06:30
parent 3ae604b4ce
commit 3f9d491cc4

View File

@@ -237,7 +237,7 @@
<!-- Action Panel -->
<div>
<button type="button" class="btn bg-default btn-block waves-effect" id="back" ><i class="material-icons">reply</i> Back </button>
<% if !@current_user.nil? && @current_user.role == 'cashier' %>
<% if !@current_user.nil? && @current_user.role != 'waiter' %>
<button id="equal_split" class="btn btn-block waves-effect bg-blue">= Split</button>
<% end %>
<% if !@orders.empty? %>