From f903ceb5247a36d5adfe576a918ce7a334b132ea Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 4 Nov 2010 16:27:18 +0000 Subject: [PATCH] Check create_users cap. see #14435 git-svn-id: http://svn.automattic.com/wordpress/trunk@16184 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/menu.php | 2 +- wp-admin/network/user-new.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/network/menu.php b/wp-admin/network/menu.php index 9f28ecea21..36c778324b 100644 --- a/wp-admin/network/menu.php +++ b/wp-admin/network/menu.php @@ -19,7 +19,7 @@ $submenu['sites.php'][10] = array( __('Add New'), 'create_sites', 'site-new.php $menu[10] = array(__('Users'), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div'); $submenu['users.php'][5] = array( __('Users'), 'manage_network_users', 'users.php' ); -$submenu['users.php'][10] = array( __('Add New'), 'manage_network_users', 'user-new.php' ); +$submenu['users.php'][10] = array( __('Add New'), 'create_users', 'user-new.php' ); $menu[15] = array(__('Themes'), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div'); $submenu['themes.php'][5] = array( __('Themes'), 'manage_network_themes', 'themes.php' ); diff --git a/wp-admin/network/user-new.php b/wp-admin/network/user-new.php index eafb5fe83d..03672c7190 100644 --- a/wp-admin/network/user-new.php +++ b/wp-admin/network/user-new.php @@ -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'] ) {