No, I'm sorry that's not true. That's absolutely illegal. Everyone who works in the federal government knows this. If just one person was confronted by their manager and asked who they voted for, that person would already be on the news screaming, and the union would be having a meltdown.
I call BS.