Calculating vacation pay for hourly employee

Hi there.
Is there specific AB legislation which prohibits employees from sharing salary information with one another?
My understanding is that: (1) there is no legislation in place wrt one employee sharing their salary with another; and (2) employers with policies which prohibit this practice, are unenforceable.
Can you please provide some guidance, please.
Thanks,