Calling POST /api/v1/users/{id}/access_tokens to create an access token for user {id} using admin's token, will create token for admin instead of user {id}
Steps to reproduce
Create admin account, user id 1
Create a normal user, user id 2
Call POST /api/v1/users/2/access_tokens using user 1(admin)'s access token. A new token is created for user 1(admin) instead of user2
Describe the bug
Calling
POST /api/v1/users/{id}/access_tokens
to create an access token for user {id} using admin's token, will create token for admin instead of user {id}Steps to reproduce
POST /api/v1/users/2/access_tokens
using user 1(admin)'s access token. A new token is created for user 1(admin) instead of user2The version of Memos you're using
0.22
Screenshots or additional context
No response