Move supplier full pull to being an api for the ember app and handle login and authorization a little bit better (should be even a lot better in the future)
This commit is contained in:
@@ -32,7 +32,7 @@ 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(anchor: '/my-account')
|
||||
redirect_to supplier_root_path(other: '/my-account')
|
||||
end
|
||||
|
||||
def mark_as_open
|
||||
|
||||
Reference in New Issue
Block a user