[buddypress-trac] [BuddyPress Trac] #8069: typo 'edit_user' in class-bp-members.php

buddypress-trac noreply at wordpress.org
Fri Mar 22 11:17:23 UTC 2019


#8069: typo 'edit_user' in class-bp-members.php
--------------------------+-----------------------------
 Reporter:  Venutius      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I was investigating a user enquiry and I noticed that line 1277 of
 `buddypress/bp-members/classes/class-bp-members-admin.php`:

 `if ( current_user_can( 'edit_user', $user->ID ) || bp_current_user_can(
 'bp_moderate' ) ) {`

 This should be:

 `if ( current_user_can( 'edit_users', $user->ID ) || bp_current_user_can(
 'bp_moderate' ) ) {`

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8069>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list