Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/15/2021 07:08:36 PM (3 months ago)
Author:
imath
Message:

Make sure regular users can edit field visibility in wp-admin/extended

As we're very close to 9.0.0-RC1, we're also updating credits to include leahkoerper to the list.

Props leahkoerper

Fixes #8529

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php

    r12869 r13017  
    272272
    273273        $r = bp_parse_args( $args['args'], array(
    274             'profile_group_id' => 0,
    275             'user_id'          => $user->ID,
    276             'hide_field_types' => array( 'wp-textbox', 'wp-biography' ),
     274            'profile_group_id'       => 0,
     275            'user_id'                => $user->ID,
     276            'hide_field_types'       => array( 'wp-textbox', 'wp-biography' ),
     277            'fetch_visibility_level' => bp_current_user_can( 'bp_moderate' ) || (int) $user->ID === (int) get_current_user_id(),
    277278        ), 'bp_xprofile_user_admin_profile_loop_args' );
    278279
Note: See TracChangeset for help on using the changeset viewer.