The commissioners shall examine all applicants for admission into the asylum, and admit or reject any applicant as they may think right. Any applicant who is rejected may appeal to the county mayor, in which case the applicant shall be examined and admitted or excluded in the discretion of the county mayor.