From 1c0a96b0ce16890e65f46a07bc832703bd55f49e Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 13 Feb 2022 11:58:12 -0700 Subject: [PATCH] Added gate to supplier Signed-off-by: snipe --- app/Http/Controllers/SuppliersController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/SuppliersController.php b/app/Http/Controllers/SuppliersController.php index c36bc34505..b901224714 100755 --- a/app/Http/Controllers/SuppliersController.php +++ b/app/Http/Controllers/SuppliersController.php @@ -179,6 +179,7 @@ class SuppliersController extends Controller */ public function show($supplierId = null) { + $this->authorize('view', Supplier::class); $supplier = Supplier::find($supplierId); if (isset($supplier->id)) {