have the courtesy to (do something)
To be kind or polite enough to do something. I was late, but luckily Sean had the courtesy to save me a seat.
have the courtesy to do something
know when you should do something in order to be polite: You think he’d at least have the courtesy to call to say he’d be late.