The action (by-law from 1971, revised twice since then) might be unreasonable and counterproductive.
I think, many other of our municipal bylaws in most states are it is well.
And I think, too, that such happens/happened not only there but at other places as well (the discussion had been already been in the early 2000's in nearby Regensburg, where it had bee regulated differently).
I have watched now (today) reports in both local tv-stations (public broadcaster and a small regional tv-station).
Opinions were only by persons from Regensburg, not by locals. I could imagine that there's more and/or something different behind this story. (That town got some prices for integration work, handling refugees .... as well as there had been a lot of 'contra': they got one of the largest accomodation for asylum seekers in Bavaria)