Ticket #16860: capabilities.diff
File capabilities.diff, 687 bytes (added by , 9 years ago) |
---|
-
wp-includes/capabilities.php
1090 1090 if ( 'edit_user' == $cap && isset( $args[0] ) && $user_id == $args[0] ) 1091 1091 break; 1092 1092 1093 // If multisite these caps are allowed only for super admins.1094 if ( is_multisite() && ! is_super_admin( $user_id) )1093 // If multisite these caps are allowed only if user can manage_network_users. 1094 if ( is_multisite() && !user_can( $user_id, 'manage_network_users' ) ) 1095 1095 $caps[] = 'do_not_allow'; 1096 1096 else 1097 1097 $caps[] = 'edit_users'; // edit_user maps to edit_users.