Anti-mosque flyer did not breach laws