mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-28 17:59:25 -05:00
[PR #15921] [MERGED] fix: allow admins to get and post on feedbacks (avoid 404 errors) #62838
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/15921
Author: @expruc
Created: 7/21/2025
Status: ✅ Merged
Merged: 7/22/2025
Merged by: @tjbck
Base:
dev← Head:feat/allow_admins_handle_feedbacks📝 Commits (2)
14c6f8badded a check for admins to avoid 404 errors on feedbacks get and post1ff2ad0ci fix📊 Changes
1 file changed (+10 additions, -4 deletions)
View changed files
📝
backend/open_webui/routers/evaluations.py(+10 -4)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Previously admins weren't able to
GETandPOSTspecific feedbacks (if they didn't write the feedback), since the filter was by feedback_id and user_id. This PR fixes this and gives admin full permissions to view and modify all feedbacks regardless of the user_id of the feedback.Fixed
Additional Information
This is especially handy when admins want to see users feedbacks details, which they couldn't previously since the user_id of the feedback didn't match the admin user_id, which resulted a 404 error on the feedback.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.