Fixed incorrect policy reference in consumables listing
This commit is contained in:
parent
9764d2ad24
commit
74773ac912
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class ConsumablesController extends Controller
|
||||||
if (!Company::isCurrentUserHasAccess($consumable)) {
|
if (!Company::isCurrentUserHasAccess($consumable)) {
|
||||||
return ['total' => 0, 'rows' => []];
|
return ['total' => 0, 'rows' => []];
|
||||||
}
|
}
|
||||||
$this->authorize('view', Component::class);
|
$this->authorize('view', Consumable::class);
|
||||||
$rows = array();
|
$rows = array();
|
||||||
|
|
||||||
foreach ($consumable->consumableAssignments as $consumable_assignment) {
|
foreach ($consumable->consumableAssignments as $consumable_assignment) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue