I had a PhD supervisor who refused to work with me because he did not like my political opinions. My work was nothing to do with politics.
Still wondering whether to do something about this because discrimination based on political views is unlawful.