Ticket #39202: 39202.patch
| File 39202.patch, 1.0 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/user-new.php
37 37 if ( false !== strpos( $user_email, '@' ) ) { 38 38 $user_details = get_user_by( 'email', $user_email ); 39 39 } else { 40 if ( is_super_admin() ) {40 if ( current_user_can( 'manage_network_users' ) ) { 41 41 $user_details = get_user_by( 'login', $user_email ); 42 42 } else { 43 43 wp_redirect( add_query_arg( array('update' => 'enter_email'), 'user-new.php' ) ); … … 313 313 if ( is_multisite() ) { 314 314 if ( $do_both ) 315 315 echo '<h2 id="add-existing-user">' . __( 'Add Existing User' ) . '</h2>'; 316 if ( ! is_super_admin() ) {316 if ( ! current_user_can( 'manage_network_users' ) ) { 317 317 echo '<p>' . __( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) . '</p>'; 318 318 $label = __('Email'); 319 319 $type = 'email';