I am assuming this is about a person at a job they like but with a boss they don't like, right?
If so, I would just bear through it as I have done because bosses come and go in the work world however if you don't like the job then that is likely not going to change much if at all so it would be best if you left the job if you didn't like it.
For example, the store I worked at has had six store managers since I was hired 15 years ago which averages 2.5 years per manager. It might like they are going to be around forever but as you can see with my example, time goes by quicker then one might think and if they are bad then they usually leave or get the ax sooner or later.