You are here

function og_membership_access in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.module \og_membership_access()

Access callback for the group membership entity.

1 string reference to 'og_membership_access'
og_entity_info in ./og.module
Implements hook_entity_info().

File

./og.module, line 1206
Enable users to create and manage groups with roles and permissions.

Code

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');
}