mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Removed commented code
This commit is contained in:
parent
d03b8c6528
commit
9764d2ad24
|
@ -160,7 +160,6 @@ class ConsumablesController extends Controller
|
||||||
*/
|
*/
|
||||||
public function getDataView($consumableId)
|
public function getDataView($consumableId)
|
||||||
{
|
{
|
||||||
//$consumable = Consumable::find($consumableID);
|
|
||||||
$consumable = Consumable::with(array('consumableAssignments'=>
|
$consumable = Consumable::with(array('consumableAssignments'=>
|
||||||
function ($query) {
|
function ($query) {
|
||||||
$query->orderBy('created_at', 'DESC');
|
$query->orderBy('created_at', 'DESC');
|
||||||
|
@ -171,8 +170,6 @@ class ConsumablesController extends Controller
|
||||||
},
|
},
|
||||||
))->find($consumableId);
|
))->find($consumableId);
|
||||||
|
|
||||||
// $consumable->load('consumableAssignments.admin','consumableAssignments.user');
|
|
||||||
|
|
||||||
if (!Company::isCurrentUserHasAccess($consumable)) {
|
if (!Company::isCurrentUserHasAccess($consumable)) {
|
||||||
return ['total' => 0, 'rows' => []];
|
return ['total' => 0, 'rows' => []];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue