In fact, employees' right to discuss their salary is protected by law. While employers may restrict workers from discussing their salary in front of customers or during work, they cannot prohibit employees from talking about pay on their own time.