It's useful to be able to grant access to view resized images on a per-preset basis, but IMO it's more common to want to make all presets available to somebody. Having to remember to add the new preset permission every time one's added is a chore - would it be hard to add a 'view all imagecache presets' permission?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kingandy’s picture

FileSize
980 bytes

Investigation suggests it could be as easy as
a) adding the permission and
b) adding an "OR" clause to the permission check inside imagecache_cache_private().

Find attached a patch which does this. Fail [y/n]?

BWPanda’s picture

Version: 6.x-2.0-beta10 » 6.x-2.x-dev
Status: Active » Needs review
FileSize
993 bytes

I'd also love to see something like this committed!

Updated patch for latest dev version.

Bartezz’s picture

+1 I'd like this too...

I'd would also be nice if imagecache would somehow make images for which a user has no permission not being listed. Now I get a bunch of broken images in a gallery, I'd rather see an empty gallery :)

Agileware’s picture

Subscribe

sandrewj’s picture

Status: Needs review » Reviewed & tested by the community

looks good

fizk’s picture

Issue tags: +ImageCache 3

Marking as ImageCache 3.x Todo.