Closed (works as designed)
Project:
Private files download permission
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
23 Apr 2013 at 18:22 UTC
Updated:
28 Jun 2013 at 17:10 UTC
If I grant permission to access a particular image style, it dosen't seem to work unless I also grant permission to access the original image.
Is this a core/image issue? Is it something that can be addressed by this module?
Comments
Comment #1
zanonmark commentedI'm sorry, I can't fully understand the matter: could you please elaborate it a little, maybe with an example?
Thanks,
Marco
Comment #2
vegansupreme commentedMarco,
My original image files live in private://rugimages
I've got a few different imagecache styles— private://styles/medium, styles/large, styles/thumbnail
If I want anonymous users to access only thumbnails, I add the directory styles/thumbnail and check anonymous as an enabled role. But when I do that, it still doesn't allow them to view the thumbnail image. Only when I also enable access to the directory /rugimages (the original images) can they view the thumbnails.
I hope that's a little clearer. I do have other permission related modules enabled. If this can't be reproduced, it may be some permission conflict. I hadn't thought to try this on a clean install, but I'll try that soon and follow up.
Best,
Joe
Comment #3
vegansupreme commentedMarco,
I've tried this on a clean install and it does the same thing. Please let me know if you need any other details, or if I can help in any way.
Joe
Comment #4
zanonmark commentedHi vegansupreme, and sorry for this late answer (I've been so busy),
I read your last two messages: I'm not a "media expert", but this should be the correct behaviour as PFDP runs a low-level check when anyone is trying to access a private file (so it has no logical idea about images, styles, etc.),
in other words, it seems to me that it's fair to grant the correct permissions to both "/styles/thumbnail" (mind the "/"!) and to "/rugimages", as both paths are needed to complete your specific operation.
Please let me know if I can be more helpful.
Thanks,
Marco
Comment #5
vegansupreme commentedAlthough Private Files Download Permission doesn't solve this, I've found another module that specifically deals with this issue. Image Style Access seems to solve this issue, by allowing access to specific image styles, without also granting permission for the original image. Hope this helps anyone else that might be looking for this particular function.