Fixed incorrect policy reference in consumables listing

This commit is contained in:
snipe 2017-11-07 23:05:29 -08:00
parent 9764d2ad24
commit 74773ac912

View file

@ -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) {