diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index d611eaa770..f5b7ce08e4 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -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()); } }