Added gate to supplier

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-02-13 11:58:12 -07:00
parent de6f922e54
commit 1c0a96b0ce

View file

@ -179,6 +179,7 @@ class SuppliersController extends Controller
*/ */
public function show($supplierId = null) public function show($supplierId = null)
{ {
$this->authorize('view', Supplier::class);
$supplier = Supplier::find($supplierId); $supplier = Supplier::find($supplierId);
if (isset($supplier->id)) { if (isset($supplier->id)) {