Skip to content

Commit

Permalink
Adds gate to supplier
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Feb 13, 2022
1 parent 05c0819 commit d77a477
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 d77a477

Please sign in to comment.