The ECJ has upheld a French law requiring landlords to obtain prior authorisation from local authorities for short-term property rentals.