mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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:
parent
384b75278c
commit
e3d61691fa
@ -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'
|
||||
) );
|
||||
}
|
||||
|
||||
|
@ -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'] ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user