Enforce edit_users cap for users.php. Props westi. fixes #3410
git-svn-id: https://develop.svn.wordpress.org/trunk@4559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7518f9f43d
commit
6248dfb2ca
@ -2,11 +2,11 @@
|
||||
require_once('admin.php');
|
||||
require_once( ABSPATH . WPINC . '/registration.php');
|
||||
|
||||
if ( !current_user_can('edit_users') )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
$title = __('Users');
|
||||
if ( current_user_can('edit_users') )
|
||||
$parent_file = 'users.php';
|
||||
else
|
||||
$parent_file = 'profile.php';
|
||||
$parent_file = 'users.php';
|
||||
|
||||
$action = $_REQUEST['action'];
|
||||
$update = '';
|
||||
|
Loading…
Reference in New Issue
Block a user