REST API: fix for generating API keys for different user

Despite documentation it was impossible to add API keys to the other user in admin/user page. It was caused by checking if API keys are set on current_user, instead of the one denoted by $user_id parameter.

If my understanding is incorrect, just reject my request.

thanks for doing awesome job :+1: