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:
@@ -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