I've looked thru the issue queue and couldn't find an existing issue that applies to my question, but if I missed it, I apologize.

I've set up a one-way relationship, user A to user B, and would like to hide this relationship from user B. These users are assigned to separate (mutually exclusive) roles. I have set the permissions under the 'UR-UI' section so that users with role A can view this relationship, but so users with role B cannot. I have also set the permissions in the 'User Relationships' section so that a user with Role B can have, but not Maintain, Request or Delete this type of relationship.

When logged in as a B and I go to the 'My Relationships' page, I can see the A->B relationships, but want to hide that.

Part of the problem may be that I'm not sure how this 'My Relationships' page is generated. Is it a view? If so, I didn't find it.

I might be missing something simple... Any suggestions would be a big help. I'd be glad to provide more info if necessary (I'd also be willing to re-categorize this issue - I'm not sure how if I've put it in the right category...).

thanks,
-dave.

Comments

mrf’s picture

Status: Active » Fixed

The best way to solve this would be to create a separate 'can view relationship x' permission, but currently that's not in the module, and I'm not sure how common your use case really is for the average social network.

Fortunately there are now alter hooks for those default tables. Have a look at user_relationships_ui/user_relationships_ui.api.php and and user_relationships_ui/user_relationships_ui.pages.inc which should allow you to filter out those relationships.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.