User Relationship Rules / Or Role Dependent

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by Hoeven on May 4, 2010 at 2:57pm

Hello,
Is there a way to (relatively easy) make a user relationship based on the role a user has? For example users which have role A can become friends with everyone who is role A but not with role B. Simple question but hard to find any answers.

Thanks so much!

Comments

Maybe you'd already found

Posted by sadist on August 19, 2010 at 9:23am

Maybe you'd already found your solution. But just to answer this for those people who might need it, YES you can.

User_relationships.module supports Role.module

You just create the type of relationship in UR, and set it only Role A are able to create that relationship in Permission settings.

@Sadist this could be helpful

Posted by todd zebert on December 4, 2010 at 3:27am

@Sadist this could be helpful to me - which "Role.module"? I can't find any other reference to this functionality, nor do I see the ability to set permissions on relationship types.

Thanks!

Hi Todd, I was referring to

Posted by sadist on December 4, 2010 at 4:18am

Hi Todd, I was referring to the core role module (admin/user/roles).

Create 2 roles, set the user_relationships permission to it. Then go to UR admin and try adding new types of relationships (admin/user/relationships/add). Here, you'll be able to see Role request access and Role receive access.

So here, you may create Relationships type A for User Role-A, create another type B for User Role-B and so on.

Social Networking Sites

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /