I may be jumping the gun on what Nodeaccess 7-x can do, but when I go to admin/config/system/nodeaccess I can select "User reference" for my content type that has a user reference field, but the settings are never granted, i.e. the selected user for a specific node can not view the node even after rebuilding content permissions. Is this something that is yet to be addresses? I'm using the "References" module to provide the reference.

Comments

charlie-s’s picture

Status: Active » Postponed

Actually, these 2 modules do work together, mostly. The issue lies in having a CCK / User Reference field that allows for multiple values. In my case, I'm using an "unlimited" user reference field, and line 1178 of nodeaccess.module has some notes on this:

// TODO Convert "user_load" to "user_load_multiple" if "$values['uid']" is other than a uid.
// To return a single user object, wrap "user_load_multiple" with "array_shift" or equivalent.
// Example: array_shift(user_load_multiple(array(), $values['uid']))

Marking as postponed... maybe it should be "works as designed" but it seems like it's something that is still undergoing work.

vlad.pavlovic’s picture

Version: 7.x-1.x-dev » 7.x-1.1
Issue summary: View changes
Status: Postponed » Closed (fixed)

Closed, this is a duplicate of #2037225: User referenced by node cannot have access to node, or that is a dupe of this issue, either way, the issue has been fixed as of 7.x-1.1 release.

Thanks.