I have been using taxonomy access module in conjunction with the image publishing module, and I have set all images in image galleries to be denied viewing access by anonymous users. However, images uploaded with image_pub were viewable. The reason for this appears to be that the way image_pub was storing the images was first to submit the image, then to add the taxonomy information. At the first stage, the image was cached without a taxonomy being assigned, and this allowed the image to be viewable.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image_pub_353311_2.patch | 1.25 KB | egfrith |
Comments
Comment #1
egfrith commentedThe attached patch solves this problem by saving the taxonomy information at the same time as the node is submitted using drupal_execute(). It also changes the call to drupal_execute() slightly, to something that seems to be more standard.
Comment #2
egfrith commentedNote that this code is effectively a backport of the code in the DRUPAL-6 branch.