Waiter app progress
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Waiter::SuppliersController < Waiter::ApplicationController
|
||||
def show
|
||||
@supplier = Supplier.find(params[:id])
|
||||
head 404 and return unless @supplier.employee_ids.include?(current_employee.id)
|
||||
render json: @supplier, serializer: Waiter::SupplierSerializer
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user