In Game of Thrones S08E06 we see Jon visit Tyrion
after he had been arrested for treason.
It seems the guards do allow him into the room as Jon hands his sword over to them.
Knowing Tyrion, it's not far-fetched that he'd try to talk Jon into things. Hence my question, did Queen Daenerys allow the visit?