Make WordPress Core

Ticket #39212: 39212.patch

File 39212.patch, 411 bytes (added by bhargavbhandari90, 8 years ago)
  • ms.php

     
    704704 * @return bool True if the user has proper permissions, false if they do not.
    705705 */
    706706function check_import_new_users( $permission ) {
    707         if ( !is_super_admin() )
     707        if ( !current_user_can( 'manage_network_users' ) )
    708708                return false;
    709709        return true;
    710710}