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

zanonmark’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » zanonmark

I'm sorry, I can't fully understand the matter: could you please elaborate it a little, maybe with an example?

Thanks,
Marco

vegansupreme’s picture

Marco,
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

vegansupreme’s picture

Marco,
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

zanonmark’s picture

Status: Active » Closed (works as designed)

Hi 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

vegansupreme’s picture

Although 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.