IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
122 | 122 | wp_die(__('Sorry, you are not allowed to edit this user.')); |
123 | 123 | // The new role of the current user must also have the promote_users cap or be a multisite super admin |
124 | 124 | if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap('promote_users') |
125 | | && ! ( is_multisite() && is_super_admin() ) ) { |
| 125 | && ! ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) { |
126 | 126 | $update = 'err_admin_role'; |
127 | 127 | continue; |
128 | 128 | } |