retrieve current user data
-
Hi,
A logged in user cannot retrieve its own data. When I use GET /users/me only admins get their data. This error is shown in the console: code:json_user_cannot_list, message:Sorry, you are not allowed to view this user.
In the code I can see this check:
if ( $current_user_id !== $id && ! current_user_can( 'list_users' ) ) {
Is this also necessary for logged in users to retrieve their own data? Or is this overlooked?
Anyway. Is there a filter avaiable to let logged in users get their own data?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘retrieve current user data’ is closed to new replies.