Merge pull request #10665 from snipe/fixes/adds_gate_to_supplier_view

Adds gate to supplier
This commit is contained in:
snipe 2022-02-13 10:56:55 -08:00 committed by GitHub
commit db0c0e7908
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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