"Arthur, you know Mad-Eye," said Mr. Diggory's head, rolling its eyes again. "Someone creeping into his yard in the dead of night? More likely there's a very shell-shocked cat wandering around somewhere, covered in potato peelings. But if the Improper Use of Magic lot get their hands on Mad-Eye, he's had it -- think of his record -- we've got to get him off on a minor charge, something in your department -- what are exploding dustbins worth?"
The phrase "have it" has a lot of meanings according to dictionaries, such as:
- To take or use something.
- To know something.
- To understand, comprehend, or grasp something.
- To claim or maintain that something is the case.
- To win a vote.
It might have other meanings too. But I can't figure out what it means exactly in this context. How should we understand it in this context?