Adds gate to supplier

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-02-13 11:53:45 -07:00
parent 05c0819776
commit d77a47765e

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)) {