If you believe in the at-will principle regarding employment, the boss was completely in his rights.
I do believe in employment at will in the productive (private) sector, but suspect it may be too good for public servants.