He had received special permission from Minister Shacklebolt after confiding in him about the diary. The Minister of Magic was not pleased that Draco had hidden something from him, especially with such a high profile circumstance, but he eventually acquiesced. It was agreed it was best Ron and Harry remained unaware of Draco’s visit to Azkaban, and of the full picture of Hermione’s mysterious enchantment.