After a police officer was sued for assault after he broke up a fight while working a security job at sports bar, two Houston attorneys recently convinced a Texas appellate court to dismiss that civil case after finding that the cop’s governmental immunity covered his off-duty position.

In William Helfand and Norman Giles’ win in Moore v. Barker, Richard Moore, an officer with the Humble Police Department, was working an off-duty security job at Coaches Sports Bar & Grill in 2014 when he spotted Justin Barker drinking beer with some of his friends.