From 74773ac912fa567b01ce8438a68ec22535dba4b6 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 7 Nov 2017 23:05:29 -0800 Subject: [PATCH] Fixed incorrect policy reference in consumables listing --- app/Http/Controllers/Api/ConsumablesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.php index 7a41c9ec41..3c1184d38b 100644 --- a/app/Http/Controllers/Api/ConsumablesController.php +++ b/app/Http/Controllers/Api/ConsumablesController.php @@ -173,7 +173,7 @@ class ConsumablesController extends Controller if (!Company::isCurrentUserHasAccess($consumable)) { return ['total' => 0, 'rows' => []]; } - $this->authorize('view', Component::class); + $this->authorize('view', Consumable::class); $rows = array(); foreach ($consumable->consumableAssignments as $consumable_assignment) {