mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixed incorrect policy reference in consumables listing
This commit is contained in:
parent
9764d2ad24
commit
74773ac912
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue