Images incorrectly allowed with Taxonomy Access module

egfrith - January 2, 2009 - 00:44
Project:Image Publishing
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:egfrith
Status:closed
Description

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.

#1

egfrith - January 2, 2009 - 00:46

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

egfrith - January 2, 2009 - 01:02
Status:active» fixed

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

#3

System Message - January 16, 2009 - 01:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.