Users: Don't show the 'Add Existing User' form on the 'Add New User' screen to users without the promote_users
capability.
Props bseddon, Mista-Flo Fixes #37836 git-svn-id: https://develop.svn.wordpress.org/trunk@41122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5f9b52df35
commit
90583c8360
@ -310,7 +310,7 @@ if ( ! empty( $messages ) ) {
|
||||
<div id="ajax-response"></div>
|
||||
|
||||
<?php
|
||||
if ( is_multisite() ) {
|
||||
if ( is_multisite() && current_user_can( 'promote_users' ) ) {
|
||||
if ( $do_both )
|
||||
echo '<h2 id="add-existing-user">' . __( 'Add Existing User' ) . '</h2>';
|
||||
if ( ! current_user_can( 'manage_network_users' ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user