mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Always allow super admins to have create_users. see #15357
git-svn-id: http://svn.automattic.com/wordpress/trunk@16264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
faa53fa488
commit
d24a3cfe04
@ -988,9 +988,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||
}
|
||||
break;
|
||||
case 'create_users':
|
||||
if ( is_multisite() && !get_site_option( 'add_new_users' ) )
|
||||
$caps[] = 'do_not_allow';
|
||||
else
|
||||
if ( !is_multisite() || is_super_admin() || get_site_option( 'add_new_users' ) )
|
||||
$caps[] = $cap;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user