A free open source IT asset/license management system
Removed commented code
snipe9764d2ad24c8
diff --git a/app/Http/Controllers/Api/ConsumablesController.php b/app/Http/Controllers/Api/ConsumablesController.phpindex e4f5a7b516..7a41c9ec41 100644--- a/app/Http/Controllers/Api/ConsumablesController.php+++ b/app/Http/Controllers/Api/ConsumablesController.php@@ -160,7 +160,6 @@ class ConsumablesController extends Controller*/public function getDataView($consumableId){- //$consumable = Consumable::find($consumableID);$consumable = Consumable::with(array('consumableAssignments'=>function ($query) {$query->orderBy('created_at', 'DESC');@@ -171,8 +170,6 @@ class ConsumablesController extends Controller},))->find($consumableId);- // $consumable->load('consumableAssignments.admin','consumableAssignments.user');-if (!Company::isCurrentUserHasAccess($consumable)) {return ['total' => 0, 'rows' => []];}