Changeset 11776 for trunk/src/bp-groups/bp-groups-actions.php
- Timestamp:
- 12/14/2017 01:24:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-actions.php
r11763 r11776 421 421 422 422 // User wants to join a group that is not public. 423 if ( $bp->groups->current_group->status != 'public') {423 if ( bp_current_user_can( 'groups_join_group', array( 'group_id' => $bp->groups->current_group->id ) ) ) { 424 424 if ( !groups_check_user_has_invite( bp_loggedin_user_id(), $bp->groups->current_group->id ) ) { 425 425 bp_core_add_message( __( 'There was an error joining the group.', 'buddypress' ), 'error' );
Note: See TracChangeset
for help on using the changeset viewer.