Skip to content

Commit db0c0e7

Browse files
authored
Merge pull request #10665 from snipe/fixes/adds_gate_to_supplier_view
Adds gate to supplier
2 parents 05c0819 + d77a477 commit db0c0e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/SuppliersController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public function destroy($supplierId)
184184
*/
185185
public function show($supplierId = null)
186186
{
187+
$this->authorize('view', Supplier::class);
187188
$supplier = Supplier::find($supplierId);
188189

189190
if (isset($supplier->id)) {

0 commit comments

Comments
 (0)