Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some field access control modules, such as "field permissions" and "profile2 privacy", are configured according to roles. So it will be very useful to generate roles based on user relationships, for example: friends.
But the difficulty is that these roles are generated dynamically: one-way or two-way, the current user as the relation source(or target) or the node author as the relation source(or target), the relation types.
To be honest, it's beyond my programming skills, hope someone can make this. :-)