Right. If anything, bavaria is illegally overreaching here in an effort to protect the AfD. Given the political development of the governing party of bavaria (the CSU developed into a right wing party and is fighting for destabilizing the moderate government) this police action is probably a political friendship offering between the two.
The stance of the CSU has always been to be the right most party in Bavaria. The AfD is their enemy for fishing votes at the right end if the spectrum that the CSU regards as their own. Why do you think we had the crisis in the federal government on behalf of CSU politicians pushing a dangerously right wing agenda?