mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
[GH-ISSUE #16490] issue: USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED=True doesn't work for any user role
#17927
Reference in New Issue
Block a user
Originally created by @mpangrazzi on GitHub (Aug 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16490
Check Existing Issues
Installation Method
Docker
Open WebUI Version
latest
Ollama Version (if applicable)
latest
Operating System
MacOS Sequoia / Ubuntu Linux 24.04
Browser (if applicable)
Brave / Chrome
Confirmation
README.md.Expected Behavior
USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED works as expected
Actual Behavior
Any message ends up to a 404 error.
Steps to Reproduce
USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCED=TrueWEBUI_AUTH=TrueBYPASS_MODEL_ACCESS_CONTROL=TrueENABLE_SIGNUP=TrueCreate an
adminuserCreate an
userWith the
user, try to initiate a chat (temporary chat banner will show up)You get the error above
It seems that frontend is not sending correct JSON body when
USER_PERMISSIONS_CHAT_TEMPORARY_ENFORCEDis enabled (everything works when it's set toFalse).Logs & Screenshots
Additional Information
No response
@Classic298 commented on GitHub (Aug 11, 2025):
Did you check the user specific permissions in the admin panel that overwrite environment variables?
@mpangrazzi commented on GitHub (Aug 11, 2025):
@Classic298 Yes, they seems to be correct.
Also, it seems that the issue is caused by this check.
When
temporary_enforcedis enabled, the frontend sendchat_id: "local"and this check on DB is failing becauselocalshould not be a real database record.Updating the line above to:
Fixes the issue. Does it make sense to you?
@alexchesn commented on GitHub (Aug 12, 2025):
This looks related - https://github.com/open-webui/open-webui/discussions/16475
@tjbck commented on GitHub (Aug 13, 2025):
@SaraDark @mpangrazzi could you confirm the issue has been addressed in dev?
@SaraDark commented on GitHub (Aug 13, 2025):
not really, I just use the official Docker image, I don't know how I would check it
@mpangrazzi commented on GitHub (Aug 13, 2025):
@tjbck Yes, it was fixed with this (not https://github.com/open-webui/open-webui/commit/e7d9755d97b8a9d49289ba5a28d1e958803dd687). Thanks!