Skip to content

Commit

Permalink
Merge pull request #10665 from snipe/fixes/adds_gate_to_supplier_view
Browse files Browse the repository at this point in the history
Adds gate to supplier
  • Loading branch information
snipe committed Feb 13, 2022
2 parents 05c0819 + d77a477 commit db0c0e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/SuppliersController.php
Expand Up @@ -184,6 +184,7 @@ public function destroy($supplierId)
*/
public function show($supplierId = null)
{
$this->authorize('view', Supplier::class);
$supplier = Supplier::find($supplierId);

if (isset($supplier->id)) {
Expand Down

0 comments on commit db0c0e7

Please sign in to comment.