Index: og/og.module =================================================================== --- og/og.module (revision 1038) +++ og/og.module (working copy) @@ -328,7 +328,12 @@ function og_menu_access_unsubscribe($gro return TRUE; } +/** + * Access callback for og invite page and links. + */ function og_menu_access_invite($node) { + // TODO We want to open this up for OG_INVITE_ONLY but we need to handle + // invitation workflow much better. See http://drupal.org/node/170332 return og_is_group_member($node) && ($node->og_selective < OG_INVITE_ONLY || og_is_group_admin($node)); } @@ -2234,8 +2239,7 @@ function og_block_details() { list($txt, $subscription) = og_subscriber_count_link($node); if ($subscription == 'active' || user_access('administer nodes')) { $links = module_invoke_all('og_create_links', $node); - // We want to open this up for OG_INVITE_ONLY but we need to handle invitation workflow much better. See http://drupal.org/node/170332 - if ($node->og_selective < OG_INVITE_ONLY) { + if (og_menu_access_invite()) { $links['invite'] = l(t('Invite friend'), "og/invite/$node->nid"); } $links['subscribers'] = $txt;