How To Serve Bad Leaders

How are you supposed to lead up when the person “up” is a terrible leader?