@VincentYamato yes it is very legal. There is no work law saying what his boss did was not illegal. It's unfortunate to say this but that's how the real world is.
Even if he was a great employee, he was still just a part-timer, companies/businesses tend to lay off part-timers when they are in...