A free open source IT asset/license management system
Fixed incorrect policy reference in consumables listing
snipe74773ac912fa
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.phpindex 7a41c9ec41..3c1184d38b 100644--- a/app/Http/Controllers/Api/ConsumablesController.php+++ b/app/Http/Controllers/Api/ConsumablesController.php@@ -173,7 +173,7 @@ class ConsumablesController extends Controllerif (!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) {