Jump to:
| Project: | Image Publishing |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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 BarkerAdding an NPBR module check and the above code would REALLY make Image_pub sweeeeeeet for those using NPBR for general visibility issues.
Cheers,
Stephen
Comments
#1
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
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
Automatically closed -- issue fixed for two weeks with no activity.