replace employee.role to current user.role

This commit is contained in:
yarzar_code
2020-08-27 17:09:13 +06:30
parent 78ecd6b1e8
commit 11b1b02b59

View File

@@ -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?