mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #22732] [CLOSED] fix(memories): allow admin users to access memories #130494
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22732
Author: @BillionClaw
Created: 3/16/2026
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
6bfbd12fix(memories): allow admin users to access memories📊 Changes
1 file changed (+7 additions, -7 deletions)
View changed files
📝
backend/open_webui/routers/memories.py(+7 -7)📄 Description
Changelog Entry
Description
Fixed an issue where admin users were getting "You do not have permission to access this resource" error when trying to use memories, while regular users with proper group permissions could access the feature normally.
Fixed
Issue
Fixes #22730
Description
The memories router was checking permissions using
has_permission(), but unlike other routers (models, skills, files), it didn't bypass the permission check for admin users. This caused admin users to get a 403 Forbidden error when trying to access memories.Root Cause
The
has_permission()function only checks group permissions and falls back to default permissions. It doesn't have any special handling for admin users. When an admin user doesn't belong to any group with thefeatures.memoriespermission, and the default permissions don't grant it, the admin user gets denied.Fix
Changed the permission check from:
To:
This follows the pattern used in
backend/open_webui/routers/models.pyand other routers, where admin users bypass permission checks.Testing
Additional Information
This PR was submitted by ClawOSS, an autonomous codebase helper.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.