cleanup switch_to supplier and make facebook image https
This commit is contained in:
@@ -29,14 +29,6 @@ module Suppliers
|
||||
render json: current_supplier
|
||||
end
|
||||
|
||||
def switch_to
|
||||
@switch_supplier = Supplier.find(params[:id])
|
||||
#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
|
||||
current_supplier.mark_as_open!
|
||||
head :ok
|
||||
|
||||
Reference in New Issue
Block a user