mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #24859] [CLOSED] feat: add admin.analytics permission for analytics-only access #131557
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/24859
Author: @guility
Created: 5/18/2026
Status: ❌ Closed
Base:
dev← Head:feat/admin-analytics-access📝 Commits (1)
c2768d7feat: add admin.analytics permission for analytics-only admin access📊 Changes
27 files changed (+876 additions, -63 deletions)
View changed files
📝
backend/open_webui/config.py(+7 -0)📝
backend/open_webui/main.py(+10 -0)➕
backend/open_webui/migrations/versions/f8a9b0c1d2e3_add_admin_analytics_permissions.py(+121 -0)📝
backend/open_webui/models/users.py(+1 -0)📝
backend/open_webui/routers/analytics.py(+9 -9)📝
backend/open_webui/routers/users.py(+30 -2)➕
backend/open_webui/test/conftest.py(+15 -0)➕
backend/open_webui/test/migrations/test_admin_analytics_permissions_migration.py(+68 -0)➕
backend/open_webui/test/util/test_access_control_admin_analytics.py(+187 -0)➕
backend/open_webui/test/util/test_analytics_api_integration.py(+99 -0)➕
backend/open_webui/test/util/test_auth_analytics.py(+52 -0)📝
backend/open_webui/utils/access_control/__init__.py(+37 -4)📝
backend/open_webui/utils/auth.py(+26 -1)➕
pytest.ini(+9 -0)📝
src/lib/apis/users/index.ts(+7 -1)📝
src/lib/components/admin/Analytics.svelte(+3 -1)📝
src/lib/components/admin/Users/Groups/EditGroupModal.svelte(+2 -1)📝
src/lib/components/admin/Users/Groups/Permissions.svelte(+24 -1)📝
src/lib/components/admin/Users/UserList/EditUserModal.svelte(+21 -1)📝
src/lib/components/layout/Sidebar/UserMenu.svelte(+7 -4)...and 7 more files
📄 Description
## Summary
admin.analyticspermission for Analytics tab access without full admin roleget_analytics_user, access control merge, migration for existing configs/groupsTest plan
admin.analyticssees Analytics menu item and single Analytics tab/admin/settingsredirects analytics-only users to/admin/analyticspytest backend/open_webui/test/util/test_auth_analytics.py backend/open_webui/test/util/test_access_control_admin_analytics.py backend/open_webui/test/migrations/Changelog
Added
admin.analyticsuser permission for granting Analytics dashboard access without full admin privileges🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.