Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/22/2022 05:42:45 AM (2 years ago)
Author:
imath
Message:

List the displayed user groups invites in member's front-end screen

As a site admin can view the displayed user groups invites, listed invites have to be the one of this user and not the ones of the site admin.

Adapt the Group Invites feature so that site admins can accept or reject on behalf of the displayed user the listed invites. These two actions made by an admin will generate a specific BP Email informing the user of it.

Props oztaser, dcavins, espellcaste

Closes https://github.com/buddypress/buddypress/pull/15
Fixes #8675

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php

    r13185 r13273  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 11.0.0
    77 */
    88?>
     
    1212<?php bp_nouveau_group_hook( 'before', 'invites_content' ); ?>
    1313
    14 <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
     14<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_displayed_user_id() ) ) : ?>
    1515
    1616    <ul id="group-list" class="invites item-list bp-list" data-bp-list="groups_invites">
Note: See TracChangeset for help on using the changeset viewer.