Mostly enriching supplier's user info with number of lists finished at the restaurant
This commit is contained in:
@@ -31,8 +31,10 @@ module Suppliers
|
||||
|
||||
def switch_to
|
||||
@switch_supplier = Supplier.find(params[:id])
|
||||
session[:supplier_id] = params[:id] if @switch_supplier.employee_ids.include? current_employee.id
|
||||
redirect_to supplier_root_path(other: '/my-account')
|
||||
#TODO sessions currently not working, just tokens
|
||||
session[:supplier_id] = @switch_supplier.id if @switch_supplier.employee_ids.include? current_employee.id
|
||||
render json: {ok: true}
|
||||
#redirect_to supplier_root_path(other: '/my-account')
|
||||
end
|
||||
|
||||
def mark_as_open
|
||||
|
||||
Reference in New Issue
Block a user