If State & Federal employees are required to sign an oath to uphold the Constitution, then why aren't they allowed to use profanity or conceal carry?

I had a State job, and the supervisors had to sign and take an oath to uphold the Constitution. How is banning conceal carry permit holders from bringing guns to work, and having policies against using profanity, upholding the Constitution?

If State & Federal employees are required to sign an oath to uphold the Constitution, then why aren't they allowed to use profanity or conceal carry?
Post Opinion