In Barcelona, making apartments available as short-term rentals involves the exact same type of reglatio that hostels need to go through to operate.
If AirBnB is suddenly deemed a problem in spite of the absolute lack of evidence, in the very least regular horeca businesses are more to blame.