Hey i was wondering whether there is a way of making it so that only certain users can see documents uploaded to a certain content type through a cck files.

Currently i have a view that is displaying uploaded PDF's, this view is only accessible by certain users. The problem comes in with the fact that the url to the PDF's arent secure e.g absolutely anyone can get to the url. So basically my view is limited to certain users but if someone was to copy the url to one of the pdf's and send it to anyone else they would be able to view the pdf. This pokes a whole range of security holes in my site =/

If anyone has a solution to this i would greatly appreciated help.

Comments

adam_b’s picture

I suspect you might want to enable private file downloads - more info at http://drupal.org/node/22240

UNarmed’s picture

Hey thanks for the reply haha i dont know why i didnt think of that =]

ajriddin’s picture

Thanks, this helped me too! However, PDF files open in the broswer, while DOC files open the download box. Any thoughts as to why?

adam_b’s picture

That may be a local browser issue - you probably have the Adobe reader plugin, but not the one for Word files. I believe there are ways to force opening or download, but afraid I don't know any details.