Skip to:
Content

BuddyPress.org

Ticket #7598: 7598.patch

File 7598.patch, 592 bytes (added by meitar, 7 years ago)

Patch for permission check when updating a Member Type from the XProfile administration screen.

  • src/bp-members/classes/class-bp-members-admin.php

     
    11971197                check_admin_referer( 'bp-member-type-change-' . $user_id, 'bp-member-type-nonce' );
    11981198
    11991199                // Permission check.
    1200                 if ( ! current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id() ) {
     1200                if ( ! bp_current_user_can( 'bp_moderate' ) && $user_id != bp_loggedin_user_id() ) {
    12011201                        return;
    12021202                }
    12031203