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.
Managing Trusted Contacts only works when using the links (green arrows), not the form elements (red arrows):
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | modified_og_membership_access-2583285-1.patch | 481 bytes | slowflyer |
og_membership_access.jpg | 17.73 KB | slowflyer |
Comments
Comment #2
slowflyer CreditAttribution: slowflyer commentedThe patch applied checks at least, if the user has "administer group" permission in the group.
And solves this issue.
Comment #3
slowflyer CreditAttribution: slowflyer commentedComment #4
stewart.adam CreditAttribution: stewart.adam commentedMight be related to #2254871: Default action behaviors in getAccessMask().
Comment #5
slowflyer CreditAttribution: slowflyer commentedMaybe 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).
Comment #6
slv_ CreditAttribution: slv_ commentedAgree 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.