mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Revert PR #4845
This commit is contained in:
parent
5219fb63a1
commit
f1bbdc9e59
|
@ -286,7 +286,6 @@ class UsersController extends Controller
|
||||||
{
|
{
|
||||||
$this->authorize('view', User::class);
|
$this->authorize('view', User::class);
|
||||||
$assets = Asset::where('assigned_to', '=', $id)->with('model')->get();
|
$assets = Asset::where('assigned_to', '=', $id)->with('model')->get();
|
||||||
if ($assets) $this->authorize('view', $assets[0]);
|
|
||||||
return (new AssetsTransformer)->transformAssets($assets, $assets->count());
|
return (new AssetsTransformer)->transformAssets($assets, $assets->count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue