Could not bulk edit users in Network Admin due to reversed logic on capability check, and incorrect action included for comparing to nonce. Props beaulebens

git-svn-id: http://svn.automattic.com/wordpress/trunk@16501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-20 05:48:35 +00:00
parent 384b75278c
commit e3d61691fa
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
function WP_MS_Users_List_Table() {
parent::WP_List_Table( array(
'plural' => 'users'
'plural' => 'users-network'
) );
}

View File

@ -367,7 +367,7 @@ switch ( $_GET['action'] ) {
break;
case 'allusers':
if ( current_user_can( 'manage_network_users' ) )
if ( !current_user_can( 'manage_network_users' ) )
wp_die( __( 'You do not have permission to access this page.' ) );
if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) {