The office of qadi
Question
Question: O successor of the Master of the two worlds ﷺ, may the Generous Lord grant you good success! Is the office of qadi something real at all? If it is, can its true heir (that is, one who is God-fearing and abstinent) become the heir and owner of his right, when no conditions of a waqf or the like are binding upon it or exist?
Answer
In an Islamic state, appointing a qadi to decide the lawsuits of the subjects, to oversee the rights of those who have no heirs or guardians, and the like, is legitimate in the Sharia; its conditions are set out in the books of fiqh.
Source: Fatawa Mahmudiyya
Preview. The full text opens with JavaScript enabled.