You are here

function og_membership_type_access in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og.module \og_membership_type_access()

Access callback for the OG membership type entity.

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

File

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

Code

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