Eleazar the priest: because he had the breastplate with Urim and Thummim, and could alone give Joshua the decision or "judgment" of Jehovah.
Related Commentaries of Numbers 27:19
Numbers 27:19
19 And set him before Eleazar the priest, and before all the congregation; and give him a charge in their sight.