A user viewing an image at for example example.com/node/1234, if he knows Drupal, can get the original by example.com/node/1234?size=_original. This may be problematic for professional photographers wanting to protect their creation.

With the patch in drupal.org/node/51541 the "Allow user to view original" setting (broken until now in 4.7) will be restored. But this code does prevent the access using ?size=_original.

I am ready to provide a patch, but as I don't know yet very well Drupral, I would like to know if it is sufficient to put a check like if (user_access('view original images') in the image_view hook?

Should this issue be classified as "critical"?

Comments

mcurry’s picture

*subscribe*

I have seen this problem in the Drupal 5 version as well - is there a known fix for this? It seems that the module should block access to ?size=_original if the current user does not have proper permissions.

drewish’s picture

yeah this is a bug. i've got a fix started but it touches a lot of code so i'll need to do some more testing.

drewish’s picture

Status: Active » Closed (fixed)
mcurry’s picture

This issue is fixed by this issue?

drewish’s picture

whoops, wrong link, but yeah it should be fixed.

Hetta’s picture

Sorry, where is this fixed? Thanks!

drewish’s picture