Who awarded a teaching license in Islamic schools