Commentary for Berakhot 42:8
ר' יהודה אומר מברך לפניהם ולאחריהם: למימרא דקסבר רבי יהודה בעל קרי מותר בדברי תורה והאמר ריב"ל מנין לבעל קרי שאסור בדברי תורה שנאמר (דברים ד, ט) והודעתם לבניך ולבני בניך וסמיך ליה יום אשר עמדת וגו' מה להלן בעלי קריין אסורין אף כאן בעלי קריין אסורין
R. Judah declares : He says Grace before and after. That is to say that R. Judah is of the opinion that a Ba'al Keri is permitted to study Torah. But lo, R. Joshua b. Levi has said : Whence is it that a Ba'al Keri is forbidden to study Torah? As it is said, "Thou shalt make them known unto thy children and thy children's children" (Deut. iv. 9) and it continues, "The day that thou stoodest before the Lord thy God in Horeb" (ibid. v. 10) — as those who were Ba'al Keri were forbidden [in the assembly at Horeb], so are they forbidden [to occupy themselves with Torah].