Posted by egfrith on January 2, 2009 at 12:44am
| 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.
#2
Note that this code is effectively a backport of the code in the DRUPAL-6 branch.
#3
Automatically closed -- issue fixed for two weeks with no activity.