1.     <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
  2.        <?php bp_get_template_part( 'activity/post-form' ); ?>
  3.     <?php endif; ?>