Download & Extend

Images incorrectly allowed with Taxonomy Access module

Project:Image Publishing
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:egfrith
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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.

AttachmentSize
image_pub_353311_2.patch 1.25 KB

#2

Status:active» fixed

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

#3

Status:fixed» closed (fixed)

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

nobody click here