replace employee.role to current user.role
This commit is contained in:
@@ -38,7 +38,7 @@ private
|
|||||||
reports_dailysale_index_path
|
reports_dailysale_index_path
|
||||||
elsif @current_user.role == "kitchen"
|
elsif @current_user.role == "kitchen"
|
||||||
oqs_root_path
|
oqs_root_path
|
||||||
elsif employee.role == "foodcourt_cashier"
|
elsif @current_user.role == "foodcourt_cashier"
|
||||||
#check if cashier has existing open cashier
|
#check if cashier has existing open cashier
|
||||||
shift = ShiftSale.current_open_shift(employee)
|
shift = ShiftSale.current_open_shift(employee)
|
||||||
if !shift.nil?
|
if !shift.nil?
|
||||||
|
|||||||
Reference in New Issue
Block a user