Check create_users cap. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -14,7 +14,7 @@ require_once('./admin.php');
|
||||
if ( ! is_multisite() )
|
||||
wp_die( __( 'Multisite support is not enabled.' ) );
|
||||
|
||||
if ( ! current_user_can('manage_network_users') )
|
||||
if ( ! current_user_can('create_users') )
|
||||
wp_die(__('You do not have sufficient permissions to add users to this network.'));
|
||||
|
||||
if ( isset($_REQUEST['action']) && 'add-user' == $_REQUEST['action'] ) {
|
||||
|
||||
Reference in New Issue
Block a user