Merge branch 'r-1902001-01' into foodcourt
This commit is contained in:
@@ -51,8 +51,18 @@
|
||||
<% end %>
|
||||
<% if can? :index, :home %>
|
||||
<% if current_login_employee.role != "kitchen" %>
|
||||
<% if current_user.role == "cashier"
|
||||
shift = ShiftSale.current_open_shift(current_user)
|
||||
if !shift.nil?
|
||||
path = origami_dashboard_path
|
||||
else
|
||||
path = new_origami_shift_path
|
||||
end
|
||||
else current_user.role == "administrator"
|
||||
path = origami_dashboard_path
|
||||
end %>
|
||||
<li class="menu-up">
|
||||
<a href="<%= origami_dashboard_path %>">
|
||||
<a href="<%= path %>">
|
||||
<i class="material-icons">monetization_on</i>
|
||||
<span><%= t :origami %></span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user