Thomas Aquinas,
Summa Theologiae — Question 26 - OF THOSE WHO CAN GRANT INDULGENCES…
“ But a man does not, through sin, lose jurisdiction. Consequently indulgences are equally valid, whether they be granted by one who is in mortal sin, or by a most holy person; since he remits punishment, not by virtue of his own merits, but by virtue of the merits laid up in the Church's treasury.Reply to Objection 1: The prelate who, while in a state of mortal sin, grants an indulgence, does not pour forth anything of his own, and so it is not necessary that he should receive an inflow from the source, in order that he may grant a valid indulgence. ”
