Enforce edit_users cap for users.php. Props westi. fixes #3410
git-svn-id: http://svn.automattic.com/wordpress/trunk@4559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c759611cc
commit
9c822fc9b3
|
@ -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