This commit is contained in:
snipe 2018-01-23 18:13:41 -08:00
parent 5219fb63a1
commit f1bbdc9e59

View file

@ -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());
}
}