Removed old getassetloist method

This commit is contained in:
snipe 2017-08-26 15:22:04 -07:00
parent bf157773c8
commit e10cdd57a5

View file

@ -1152,20 +1152,6 @@ class UsersController extends Controller
return redirect()->route('ldap/user')->with('success', "LDAP Import successful.")->with('summary', $summary);
}
/**
* Return JSON containing a list of assets assigned to a user.
*
* @author [A. Gianotto] [<snipe@snipe.net>]
* @since [v3.0]
* @param $userId
* @return string JSON
*/
public function getAssetList($userId)
{
$this->authorize('view', User::class);
$assets = Asset::where('assigned_to', '=', $userId)->with('model')->get();
return response()->json($assets);
}
/**
* Exports users to CSV