WordPress.org

Make WordPress Core

Ticket #16860: capabilities.diff

File capabilities.diff, 687 bytes (added by daniellandau, 5 years ago)

Fixes issue for me

  • wp-includes/capabilities.php

     
    10901090                if ( 'edit_user' == $cap && isset( $args[0] ) && $user_id == $args[0] )
    10911091                        break;
    10921092
    1093                 // If multisite these caps are allowed only for super admins.
    1094                 if ( is_multisite() && !is_super_admin( $user_id ) )
     1093                // If multisite these caps are allowed only if user can manage_network_users.
     1094                if ( is_multisite() && !user_can( $user_id, 'manage_network_users' ) )
    10951095                        $caps[] = 'do_not_allow';
    10961096                else
    10971097                        $caps[] = 'edit_users'; // edit_user maps to edit_users.