menu updated | edit qty updated
This commit is contained in:
@@ -77,7 +77,13 @@ class HomeController < ApplicationController
|
||||
|
||||
def route_by_role(employee)
|
||||
if employee.role == "administrator"
|
||||
redirect_to dashboard_path
|
||||
# redirect_to dashboard_path
|
||||
shift = ShiftSale.current_open_shift(employee.id)
|
||||
if !shift.nil?
|
||||
redirect_to origami_root_path
|
||||
else
|
||||
redirect_to new_origami_shift_path
|
||||
end
|
||||
elsif employee.role == "cashier"
|
||||
#check if cashier has existing open cashier
|
||||
shift = ShiftSale.current_open_shift(employee.id)
|
||||
|
||||
Reference in New Issue
Block a user