I have been working on a project using this module, after playing around and assigning some permissions i realize that on this function node_gallery_user_access the parameter $gallery sometimes is a string, which is really confuse for some assignments, this might have be what you actually think when you create the module, however is confusing for some developers and totally not helping to solve any trouble, what i did was create a really simple patch but i'd like to know if there are a particular reason because you guys did that.

thanks in advance.

#1 gallery-not-object-1930134-1.patch107 bytestatewaky
Members fund testing for the Drupal project. Drupal Association Learn more


tatewaky’s picture

Here is the patch i mention

zengenuity’s picture

Status: Active » Closed (won't fix)

The developers of the 6.x version of the module have left the project. I have taken it over to work on the 7.x series, so I don't know why they would have chosen to code the function that way. Your patch seems reasonable, but I'm not going to commit it because I'm basically only doing security fixes on the 6.x series at this point, and I don't want to break anything. Thanks for posting it though. It could help other users.