check role for = split
This commit is contained in:
@@ -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? %>
|
||||
|
||||
Reference in New Issue
Block a user