I have create two users User1 and User2. Then created users relationship "Friend" with required approval and two way approval. I then marked Content Type Page as "Posting To Social Network".
After this User 1 invited User2 to be his friend which User2 approved. So now both are friends.
Now User1 created a node of type page "XYZ" and Under "Node access based on your relationships to other users" I have marked View as Check in front of Relationship Type "Post to Friends" (Note: Given Permission "grant view permission to related users" to authenticate users).
After this I logged out as User1 and checked whether Anonymous user can see the node "XYZ". Anonymous user cannot see the node. So far node access is working!
After this I logged in as User2 to see if he can see the node "XYZ"? I was amazed he is also not been able to see the node. Which I think is Bug.
Now User2 created a node "ABC" of type page and Under "Node access based on your relationships to other users" I have marked View as Check in front of Relationship Type "Post to Friends".
This time again User1 not able to see the node "ABC" created by User2. So confirmed that Module is not worked as it should behave.
Let me know If I have done anything wrong or missed any step which needed to be followed.
Comments
Comment #1
dreadfulcode commentedDid you ever get this worked out?
Was it not working because you didn't set the priority of the the access modules? Just wondering... because if you use two different access control modules, one could fire different permissions than the other.
Comment #2
hobbsb commentedSorry, this is my first time writing contributing to the bug process. I ran into this same issue and found this bug in a google search. After spending some time investigating. It appears this could be related to the query generation in user_relationships_load().
http://drupal.org/node/979680
After fixing the query to use USING instead of ON, my problem was resolved.
Not going to modify the attributes of this issue, because I really don't know the process. Thanks :)
Comment #3
mrf commentedClosing this as a duplicate of #979680: user_relationships_load() return no result. A patch has been commited to the latest dev, please test and confirm that it resolves your issue.