Communities have right to ban mosques