Skip to:
Content

BuddyPress.org

Opened 17 months ago

#8072 new defect (bug)

'edit_users' capability not allowing extended profiles to be viewed/edited

Reported by: Venutius Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Members Keywords:
Cc:

Description

I've raised a couple of tickets to address some capability checks for 'edit_users' in bp membes admin ( #8069 #8070 ) however, with these changes in place we still don't get the desired results. Whilst those users can now see the 'Extended' option in the user list, clicking on it returns a page with a content of -1.

This is caused by line 904 of `buddypress/bp-members/classes/class-bp-members-admin.php not including a check for 'edit_users':

if ( ! bp_current_user_can( 'bp_moderate' ) && empty( $this->is_self_profile ) ) {

I suggest we change this to:

if ( ! current_user_can( 'edit_users' ) && ! bp_current_user_can( 'bp_moderate' ) && empty( $this->is_self_profile ) ) {

Change History (0)

Note: See TracTickets for help on using tickets.