Hello danielb, here your explaination. Thank you so far!

I think I understand what you're trying to do, but you have it totally backwards, unless you're not explaining it right.

1) Create a content type called 'circle'
2) Add a user_reference field on 'circle' type and set up nodeaccess_userreference to give referenced users 'view' access to the current node.
3) Create a circle node and reference the users you want to be in on the circle.
4) Create a content type called 'circle item' (this represents other pages within the circle - you can several such content types for different stuff)
5) Add a node_reference field to 'circle item' type which can reference only 'circles', and set up nodeaccess_nodereference to pass on view access when they can view a reference.
6) Create a 'circle item' and set it's node reference to be the 'circle'.
7) The users referenced in the circle should now have access to the circle item created in step 5.

Anyway, I'm marking the create feature as fixed as no doubt the issue will resurface if there is any problem with it.

Ok, that's what I've done before. The referenced user have now access to circle item but also access to view the "circle" itself! The circle shouldn't accessible to the referenced user. Any chance to set the "circle" node as "private" to the owner?
Referenced user shouldn't know in which circle he was added. That problem stopps me with my project...

Comments

danielb’s picture

Status: Active » Closed (works as designed)

No, the whole setup relies on the user having the access to the circle. If you need to block them from the node you have to use something other than node access.

JohnnyX’s picture

No chance to get it work? I tried to hide the node as unpublished from other and also referenced users but doesn't work. nodeaccess_userreference also show unpublished content to referenced users. Would it possible to hide the node if is unpublished?

I don't know another module to build circles... Access by term could be an alternative to nodeaccess_userreference/ nodeaccess_nodereference but it works with taxonomy and each user can set every term... So it's no access control be the owner. Maybe it would works with something like private_taxonomy module but at the moment it's no solution...

No idea and no way to hide the circle node from other users?

JohnnyX’s picture

Ok, I'll take a look at rules module. Maybe I can redirect or deny access by a rule...

JohnnyX’s picture

Found a solution with Access by Term, Private Taxonomy Terms and Content Access (workaround to grand authors access to own node... -> #1428634: Any way to enable view access only if author or if published)

Seems to work as a simple G+ circle solution :)

JohnnyX’s picture

Issue summary: View changes

quote instead of blockquote...