And this is its explanation: for it has already been explained in siman 382, section 20, in the name of our teacher, the Rema, that when one lends or rents his house to a non-Jew—he does not prohibit, for he did not lend it or rent it to him to prohibit it upon himself; see there. And this is regarding an ordinary non-Jew. But a quaestor of the king—the law of the kingdom is the law, and he has the authority to dwell in whichever house he desires, and the house is like his own, and immediately upon his coming to the house it is like his—and he prohibits. However, this is when he is accustomed to come, but when he is not accustomed to come—he is like an ordinary guest, and he does not prohibit. But when he has dwelt for thirty days—it is like his own house, and he prohibits. And this is the first braaita, and when he is not accustomed to come—it calls him a guest, meaning this quaestor is a guest. And the second braaita, that a quaestor prohibits after thirty days—this is when he is not accustomed, as was said before. However, this is when he enters with the permission of the king, for the law of the kingdom is the law. But this quaestor, when the king did not give him permission—he is nothing but an ordinary extortionist, and he does not prohibit even after thirty days. (This is the explanation of the Yerushalmi, and the Korban HaEidah raised many difficulties, see there in the Sheyarei Korban where he wishes to correct the version of the text, but according to what I have written the version is straight and the explanation is clear with the help of Heaven.)
והכי פירושו, דכבר נתבאר בסימן שפ"ב סעיף כ' בשם רבינו הרמ"א, דכשהשאיל או השכיר ביתו לאינו יהודי - אינו אוסר, שלא השאילו והשכירו לאסור עליו ע"ש. וזהו באינו יהודי בעלמא. אבל קסדור של מלך - דינא דמלכותא דינא ויש לו רשות לישב באיזה בית שירצה, והוי הבית כשלו, ומיד שבא לבית היא כשלו - ואוסר. אך זהו ברגיל לבא, אבל בשאינו רגיל לבא - הוה כאורח בעלמא, ואינו אוסר. אך כשישב ל' יום - הוה כבית שלו, ואוסר. וזהו ברייתא ראשונה, וכשאינו רגיל לבא - קורא לו אכסניא, כלומר זה הקוסטר הוה אכסניא. וברייתא שנייה דקוסטר אוסר לאחר ל' - זהו באינו רגיל, וכמו שאמר מקודם. אך זהו כשנכנס ברשות המלך, דדינא דמלכותא דינא. אבל זה הקסטור כשהמלך לא נתן לו רשות - אינו אלא כאנס בעלמא, ואינו אוסר אף לאחר ל'. (זהו פירוש הירושלמי, והקרבן העדה הרבה להקשות ע"ש בשיירי קרבן ורוצה לשבש הגירסא, ולפי מ"ש הגירסא מיושרת והפירוש ברור בס"ד)