Reference for Bava Batra 14:10
כופין אותו לבנות בית שער ודלת לחצר: תניא רבן שמעון בן גמליאל אומר לא כל חצרות ראויות לבית שער אלא חצר הסמוכה לרשות הרבים ראויה לבית שער ושאינה סמוכה לרשות הרבים אינה ראויה לבית שער ורבנן זימנין דדחקי בני רשות הרבים ועיילו ואתו:
and the other there is no latch. Or again I may say that in both cases there is a latch and still there is no difficulty, because in the one case the latch is inside and in the other outside.<span class="x" onmousemove="('comment',' If the latch is inside the poor man cannot open the door with it, and so cannot make his voice heard. ');"><sup>16</sup></span> HE MAY BE COMPELLED TO CONTRIBUTE TO THE COST OF A PORTER'S LODGE AND A DOOR. It has been taught: Rabban Simeon b. Gamaliel Says: Not all courtyards require a porter's lodge; a courtyard which abuts on the public thoroughfare requires a lodge, but one which does not abut on the public thoroughfare<span class="x" onmousemove="('comment',' Being somewhat drawn back into private ground. ');"><sup>17</sup></span>