Managing Trusted Contacts only works when using the links (green arrows), not the form elements (red arrows):

og_membership_access

The form elements are build from views_bulk_operations, this module calls:

entity_access($op, $entity_type, $entity, $account) to check permissions.

entity_access calls og_membership_access

function og_membership_access($op, $entity, $account = NULL, $entity_type = 'og_membership') {
  // No-end user needs access to this entity, so restrict it to admins.
  return user_access('administer group');
}

Which will only work for administrators.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

slowflyer created an issue. See original summary.

slowflyer’s picture

The patch applied checks at least, if the user has "administer group" permission in the group.

 function og_membership_access($op, $entity, $account = NULL, $entity_type = 'og_membership') {
   // No-end user needs access to this entity, so restrict it to admins.
-  return user_access('administer group');
+  return og_user_access($entity->group_type, $entity->gid, 'administer group', $account);
 }

And solves this issue.

slowflyer’s picture

Version: 7.x-3.30 » 7.x-3.31
stewart.adam’s picture

slowflyer’s picture

Maybe this is an issue too.

But for my understanding, this is a left over from OG 7.1 where groups based on content types not on entities.
With OG 7.2 and the possibility, that a user entity can be a group, the user should have the possibility to manage this group (speaking in Drupal Commons his/her trusted contacts).

slv_’s picture

Agree with #5, this is an issue with OG, not with commons. I've updated the ticket in the other issue queue with a patch: https://www.drupal.org/node/2583303#comment-11672233.