The source validates both Fard and voluntary prayer:
• inside the Ka'bah;
• on the roof of the Ka'bah.
Prayer on the roof is nevertheless disliked because standing above the sacred structure conflicts with proper respect.
The matn does not specify a narrower subtype of Karahah here, so the course preserves the wording 'disliked' rather than assigning an unsupported label.