You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
In WP_REST_Users_Controller::get_items(), we forcibly downgrade context if the user doesn't have list_users capability:
if ( ! current_user_can( 'list_users' ) ) {
$prepared_args['has_published_posts'] = true;
// Only display a public subset of information
$request['context'] = 'embed';
}
This is inconsistent with the rest of our controllers. If the current user can't access the supplied context, we should return an error.