Foreigners barred from taking part in political activities