I created two Content-Types, Gallery and Photo (via CCK with Gallery node-reference in Photo content-type) so that Photos can be inserted into a Gallery (A Gallery contains multiple Photos).

Using the default Nodeaccess setting, Anonymous & Authenticated roles have view-access to all of my Gallery-nodes and Photo-nodes.

Now, when I remove view-access for Anonymous & Authenticated roles in one of my Galleries (via Grant), the Photos which are inside it, can still be accessed by Anonymous & Authenticated roles.

The permission of those Photos should be automatically updated when the referenced Gallery has its permission changed...

Comments

theshanergy’s picture

This is old but I have the same need - did you ever find what you were looking for?

I came across http://drupal.org/project/nodeaccess_nodereference but it looks like it works the other way around, passing the grants to a referenced node, rather than getting grants from the referenced node..

bonn’s picture

well, it was long time ago (not remembered) :-),..

but we kinda solved it by manually adding needed codes into the module nodeaccess. So, upon changing the gallery permission, the code traverses the photo (referencing node) and update the permission accordingly.

d.fisher’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Drupal 6 support was ended as of February 24th 2016.

We are doing some housekeeping on the nodeaccess issue queue and moving all Drupal 6 issues to "postponed (maintainer needs more info)". See https://www.drupal.org/project/nodeaccess/issues/3516593.

If this issue persists on the latest dev branch of nodeaccess (2.0.x-dev) then please feel free to comment and we will change the version against this issue. If we do not hear any feedback within 2 weeks (9th October 2025) we will go ahead and close this issue as outdated.

Thank you.

d.fisher’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

As per the above, as there has been no response we will now close this issue as outdated.

If this issue persists on the latest dev branch of nodeaccess (2.0.x-dev) then please feel free to update the version on this issue and reopen it.

Thank you.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.