Please explain further, as your original message in PT indicated just an issue with Guests being able to view PDFs inline when their permission did not allow for it.
From what it sounds like in your post, you're having more issues than just with PDFs being allowed to be viewed by users without the proper permission.