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.

CommentFileSizeAuthor
#1 image_pub_353311_2.patch1.25 KBegfrith

Comments

egfrith’s picture

StatusFileSize
new1.25 KB

The 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.

egfrith’s picture

Status: Active » Fixed

Note that this code is effectively a backport of the code in the DRUPAL-6 branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.