Youtube videos aren't attachments so they aren't affected by that permission. Attachments are files that are uploaded to your forum using the Upload a File button. Attachments get uploaded to your server, unlike Youtube videos which are hosted by Youtube.
It is possible to write an addon to hide videos for guests. You can post a request here: