diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index a5eb11b3..47ccbf62 100755 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -38,7 +38,7 @@ private reports_dailysale_index_path elsif @current_user.role == "kitchen" oqs_root_path - elsif employee.role == "foodcourt_cashier" + elsif @current_user.role == "foodcourt_cashier" #check if cashier has existing open cashier shift = ShiftSale.current_open_shift(employee) if !shift.nil?