Users: On the 'Add New User' screen, don't show the roles dropdown if the current user can't promote other users.
Fixes #50345. git-svn-id: https://develop.svn.wordpress.org/trunk@48042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5b31b4eee4
commit
90d8fdb5bb
@ -575,6 +575,7 @@ if ( current_user_can( 'create_users' ) ) {
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // End if ! is_multisite(). ?>
|
||||
<?php if ( current_user_can( 'promote_users' ) ) { ?>
|
||||
<tr class="form-field">
|
||||
<th scope="row"><label for="role"><?php _e( 'Role' ); ?></label></th>
|
||||
<td><select name="role" id="role">
|
||||
@ -587,6 +588,7 @@ if ( current_user_can( 'create_users' ) ) {
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ( is_multisite() && current_user_can( 'manage_network_users' ) ) { ?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e( 'Skip Confirmation Email' ); ?></th>
|
||||
|
Loading…
Reference in New Issue
Block a user