Skip to:
Content

BuddyPress.org

Changeset 12938


Ignore:
Timestamp:
04/29/2021 05:52:32 PM (5 years ago)
Author:
dcavins
Message:

Member Invites: Change permissions check in bulk management.

In bp_members_invitations_action_bulk_manage(),
only continue if the current user is managing his own
invitations or is a site admin.

Props imath.

Fixes #8139.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/actions/invitations-bulk-manage.php

    r12936 r12938  
    1818
    1919        // Bail if not the user's invitations screen.
    20         if ( ! bp_is_user_members_invitations() ) {
     20        if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) {
    2121                return false;
    2222        }
Note: See TracChangeset for help on using the changeset viewer.