Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensures that post form doesn't show up for non-logged-in users

  • Loading branch information...
commit 527a4ffb88c2c48d26a2f1dcdf39034714dd8fc2 1 parent bed41ba
@boonebgorges authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/index.php
View
4 templates/index.php
@@ -1,7 +1,9 @@
<?php do_action( 'bp_before_reviews' ) ?>
<div id="group-reviews" class="activity">
- <?php include( apply_filters( 'bpgr_post_template', BP_GROUP_REVIEWS_DIR . 'templates/post.php' ) ) ?>
+ <?php if ( is_user_logged_in() ) : ?>
+ <?php include( apply_filters( 'bpgr_post_template', BP_GROUP_REVIEWS_DIR . 'templates/post.php' ) ) ?>
+ <?php endif ?>
<?php
if ( bpgr_is_group_reviews() ) {

1 comment on commit 527a4ff

@slaFFik

Great, thank you Boone!

Please sign in to comment.
Something went wrong with that request. Please try again.