mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-06 09:19:04 +00: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: https://develop.svn.wordpress.org/trunk@16501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user