A California appellate court has affirmed the termination of a Los Angeles City firefighter who was disciplined for engaging in…