- Timestamp:
- 04/28/2017 02:36:15 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r11405 r11544 241 241 if ( ! bp_is_item_admin() ) { 242 242 bp_update_is_item_mod ( groups_is_user_mod ( bp_loggedin_user_id(), $this->current_group->id ), 'groups' ); 243 }244 245 // Is the logged in user a member of the group?246 if ( ( is_user_logged_in() && groups_is_user_member( bp_loggedin_user_id(), $this->current_group->id ) ) ) {247 $this->current_group->is_user_member = true;248 } else {249 $this->current_group->is_user_member = false;250 }251 252 // Should this group be visible to the logged in user?253 if ( 'public' == $this->current_group->status || $this->current_group->is_user_member ) {254 $this->current_group->is_visible = true;255 } else {256 $this->current_group->is_visible = false;257 243 } 258 244 … … 558 544 // show a "Request Membership" nav item. 559 545 if ( is_user_logged_in() && 560 ! $this->current_group->is_ user_member &&546 ! $this->current_group->is_member && 561 547 ! groups_check_for_membership_request( bp_loggedin_user_id(), $this->current_group->id ) && 562 548 $this->current_group->status == 'private' &&
Note: See TracChangeset
for help on using the changeset viewer.