Changeset 39935
- Timestamp:
- 01/20/2017 05:48:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/user-new.php
r39934 r39935 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 { … … 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');
Note: See TracChangeset
for help on using the changeset viewer.