Unless you have a union agreement or employment contract that protects you under the circumstance, your boss's action was legal. The fact is that in an "at will" work relationship, a business can set the conditions of employment much as it sees fit. The only exception would be if an employee's treatment constitutes some form of legally actionable discrimination. However, age discrimination only applies to workers who are 40 and older.