Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | imagecache-view_all_permission.patch | 993 bytes | BWPanda |
#1 | all_presets_patch.diff | 980 bytes | kingandy |
Comments
Comment #1
kingandy CreditAttribution: kingandy commentedInvestigation 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]?
Comment #2
BWPanda CreditAttribution: BWPanda commentedI'd also love to see something like this committed!
Updated patch for latest dev version.
Comment #3
Bartezz CreditAttribution: Bartezz commented+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 :)
Comment #4
Agileware CreditAttribution: Agileware commentedSubscribe
Comment #5
sandrewj CreditAttribution: sandrewj commentedlooks good
Comment #6
fizk CreditAttribution: fizk commentedMarking as ImageCache 3.x Todo.