mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #6052] [API] /user/{user_id}/update permission problem #14222
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fraciscoestar on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6052
Feature Request
Is your feature request related to a problem? Please describe.
I am using the Open WebUI API to provide a client for a VSCode extension. I was trying to let the user change its avatar from here but I have encountered a problem. The user don't have permission to update itself.
Describe the solution you'd like
Any user should have permission to update itself in [POST] /users/{user_id}/update. Any user may only be capable of updating itself and not any other user unless the user role is admin.
Describe alternatives you've considered
Another solution for my problem may be to store an admin API key in the client but that may be a high security risk.
Additional context
The API requests use the JWT session token of the users.
Request to change icon:
Response: