Uploaded photo "Node Privacy By Role"-permissions not saved with node by Image_pub

DigitalFrontier... - February 22, 2007 - 20:39
Project:Image Publishing
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Would be nice if Image_pub did a check for NPBR since the work saved by a mass upload is counteracted by the fact that Image_pub saves all the photos without necessary permissions if using NPBR. Since NPBR's fallback security is to disallow access to all but admin, the result is having to manually go back in to each photo under Admin>content to change the view/edit permissions even when NPBR defaults have already been established for the image node type.

I inserted the following around line 248 of Image_pub.module which saves a lot of hassle:

// *****  the line below allows iPhoto2Gallery image uploads to inherit Node Privacy By Role default values
_node_privacy_byrole_set_defaults(&$node, $force = TRUE);
// *****  Hack by Stephen Barker

Adding an NPBR module check and the above code would REALLY make Image_pub sweeeeeeet for those using NPBR for general visibility issues.

Cheers,
Stephen

#1

egfrith - September 23, 2008 - 23:07
Status:active» postponed (maintainer needs more info)

I've just taken over maintaining this module.

Thanks for your suggestion.

I am at present focussing my efforts on the 5.x branch. It would therefore be great if you could let me know if this is still needs to be fixed in the 5.x branch -- I'm not very familiar with NPBR.

If I don't hear anything in a couple of weeks, I'll close this issue.

#2

egfrith - November 16, 2008 - 00:57
Version:4.7.x-1.x-dev» 5.x-1.x-dev
Status:postponed (maintainer needs more info)» fixed

I think the committed patch in #323160: Use forms api to create image node should have fixed this issue. Please reopen this issue if not.

#3

System Message - November 30, 2008 - 01:05
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.