I'm using Drupal 5.3, with Gallery 2.2.3 and Gallery module 5.x-2.0.
I have a filter to show random images from an album that "anonymous user" has no permissions for. The images appear fine for the right users, but text of the filter appears for everyone else.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | g2filter.patch | 930 bytes | profix898 |
Comments
Comment #1
profix898 commentedThe filter indeed only replaces the filter tag, if getImageBlock() returns content from G2. Does the module issue a 'Error trying to get image block.' message if the user is not allowed to see that album? What would be the expected behavior? It should be trivial to fix codewise, but I'm not sure how we should handle such cases in general ...
Comment #2
profix898 commentedThe attached patch simply removes the filter tag if no html is returned from G2. Can you please try and comment?
Comment #3
rallycivic commentedThat works perfectly - thanks very much!
Comment #4
profix898 commentedPatch committed. Thanks.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.