WC API: can generate API keys for different user than the one that is making request

This commit is contained in:
profetes 2014-03-25 17:22:48 +01:00 committed by Mike Jolley
parent 2850b07f8e
commit 23ecb9a2c5
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class WC_Admin_Profile {
if ( current_user_can( 'edit_user', $user_id ) ) {
$user = wp_get_current_user();
$user = get_userdata( $user_id );
// creating/deleting key
if ( isset( $_POST['woocommerce_generate_api_key'] ) ) {