Attachment page gives 404 if user not logged

Attachment page gives 404 if user not logged