And according to this, you will see that our teacher, the Beit Yosef, in section 4 (Shulchan Aruch Orach Chaim 242:4) combined two opinions together, and this is his wording: It is forbidden for a person to ever rule in the presence of his teacher. And anyone who rules in his presence is liable to death. And if he is twelve mil distant from his teacher, and a person asked him a matter of halacha by chance, he may answer; but to establish himself etc. is forbidden etc. or until he gives him permission. Thus far his words, and this is the view of the Rambam, of blessed memory. And afterwards he wrote: And some say that a total student within twelve mil is liable to death if he rules, and outside of twelve mil he is exempt but it is forbidden. And a talmid chaver within twelve mil is exempt but it is forbidden, and outside of twelve mil it is permitted. Even though he took permission from one teacher, it is not sufficient until he takes permission from all of his primary teachers. Thus far his words. And he combined the view of the French sages, which is the view of the Tosafot in Eruvin and the view of the Rosh and the Tur, with the view of the Rashba in the responsum that we cited. And these are separate resolutions, for according to the view of the Rashba there is no distinction between a total student and a talmid chaver. And also in this he did not explain well, for that which requires permission from all his teachers—this is only within three parsaot, and outside of three, taking permission from one is sufficient. And perhaps his intention is also so, and his words require great study. (And also the words of the Shach in subsection 10 are puzzling, for he wrote regarding that of a talmid chaver being permitted outside of three parsaot, and this is his wording: It implies even without taking permission, and so it implies from Tosafot in Sanhedrin etc., thus far his words. And it is difficult: for what does he bring from Tosafot there regarding a talmid chaver? Behold, they rejected there this distinction of a talmid chaver, see there, and they wrote to distinguish between taking permission and not taking permission from one's primary teacher. And what matter is it to a talmid chaver? And this law of the Beit Yosef is according to Tosafot in Eruvin. And also what he wrote: "It implies even without taking permission etc."—it requires study, what "implies"? It is obvious that it is so, for with the taking of permission even a primary student is permitted within three when not literally in his presence according to all views. And also what he wrote in subsection 11, that it refers to a total student, but for a talmid chaver it is sufficient to take permission from his teacher, thus far his words—they are very puzzling. For this law is from the Rashba, and he does not distinguish between a total student and a chaver, but rather distinguishes that within three parsaot one needs from all his teachers, and outside of three, one teacher is sufficient, but one teacher is necessary so that they do not err in his words. And if so, according to the Rashba, regarding a talmid chaver one could say that he does not need it at all, like the view of the Rambam. If [so], one can settle his words: that according to the words of the Beit Yosef who combined the two views, one must say so, but what is he teaching us? It is obvious that it refers to a total student, since he wrote "from all his primary teachers," this is not relevant to a talmid chaver. And this too is difficult for the Shach, for from the words of the Beit Yosef it is explicitly explained that for a chaver outside of twelve mil he does not need to take permission at all. And look closely and you will find it easy.)
ולפי זה תראה שרבינו הבית יוסף בסעיף ד (שולחן ערוך אורח חיים רמב, ד) הרכיב שני דעות ביחד, וזה לשונו: אסור לאדם להורות לפני רבו לעולם. וכל המורה לפניו – חייב מיתה. ואם הוא רחוק מרבו שנים עשר מיל, ושאל לו אדם דבר הלכה בדרך מקרה – יכול להשיב, אבל לקבוע עצמו וכו' אסור וכו' או עד שיתן לו רשות. עד כאן לשונו, וזהו שיטת הרמב"ם ז"ל. ואחר כך כתב: ויש אומרים דתלמיד גמור תוך שנים עשר מיל – חייב מיתה אם הוא מורה, וחוץ לשנים עשר מיל – פטור אבל אסור. ותלמיד חבר תוך שנים עשר מיל – פטור אבל אסור, וחוץ לשנים עשר מיל – מותר. אף על פי שנטל רשות מרב אחד – לא סגי עד שיטול רשות מכל רבותיו המובהקים. עד כאן לשונו. והרכיב דעת חכמי הצרפתים, שזהו דעת התוספות בעירובין וזהו דעת הרא"ש והטור, עם דעת הרשב"א בתשובה שהבאנו. והמה תירוצים נפרדים, דלדעת הרשב"א אין חילוק בין תלמיד גמור לתלמיד חבר. וגם בזה לא ביאר יפה, דזה שצריך רשות מכל רבותיו – זהו רק בתוך שלוש פרסאות, ובחוץ לשלוש – די בנטילת רשות מאחד. ואולי גם כוונתו כן הוא, ודבריו צריכים עיון גדול. (וגם דברי הש"ך סעיף קטן י תמוהים, שכתב אהך דתלמיד חבר שמותר חוץ לשלוש פרסאות, וזה לשונו: משמע אפילו בלא נטילת רשות, וכן משמע מתוספות בסנהדרין וכו', עד כאן לשונו. וקשה: דמאי מייתי מתוספות דשם אתלמיד חבר? הא הם דחו שם חילוק זה דתלמיד חבר, עיין שם, וכתבו לחלק בין נטילת רשות ללא נטל רשות מרבו מובהק. ואיזה עניין הוא לתלמיד חבר? ודין זה של הבית יוסף הוא לתוספות עירובין. וגם מה שכתב: משמע אפילו בלא נטילת רשות וכו' – צריך עיון מאי משמע? פשיטא שכן הוא, דבנטילת רשות גם תלמיד מובהק מותר תוך שלוש שלא בפניו ממש לכל השיטות. וגם מה שכתב בסעיף קטן י"א דאתלמיד גמור קאי, אבל בתלמיד חבר סגי בנטילת רשות מרבו, עד כאן לשונו – תמוהים מאד. דדין זה הוא מהרשב"א, ואיהו אינו מחלק בין תלמיד גמור לחבר, אלא שמחלק דבשלוש פרסאות צריך מכל רבותיו, וחוץ לשלוש – די ברב אחד, אבל רב אחד צריך כדי שלא יטעו בדבריו. ואם כן להרשב"א בתלמיד חבר יש לומר דאינו צריך כלל, כמו לשיטת הרמב"ם. אם [כן] יש ליישב דבריו: דלפי דברי הבית יוסף שהרכיב שני השיטות, צריך לומר כן, אך מאי קא משמע לן? פשיטא דאתלמיד גמור קאי, כיון שכתב מכל רבותיו המובהקים אין זה שייך בתלמיד חבר. וגם זה קשה על הש"ך, דמדברי הבית יוסף מבואר להדיא דבחבר חוץ לשנים עשר מיל אינו צריך נטילת רשות כלל. ודייק ותמצא קל.)