mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -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);
|
||||
$assets = Asset::where('assigned_to', '=', $id)->with('model')->get();
|
||||
if ($assets) $this->authorize('view', $assets[0]);
|
||||
return (new AssetsTransformer)->transformAssets($assets, $assets->count());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue