[PR #2158] [CLOSED] New settings feature to whitelist models for individual users #7710

Closed
opened 2025-11-11 17:33:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2158
Author: @mrrtmob
Created: 5/10/2024
Status: Closed

Base: devHead: main


📝 Commits (10+)

📊 Changes

16 files changed (+1065 additions, -94 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 backend/apps/ollama/main.py (+75 -3)
📝 backend/apps/openai/main.py (+35 -5)
backend/apps/web/internal/migrations/008_admin_settings.py (+53 -0)
backend/apps/web/internal/migrations/009_add_model_to_users_table.py (+50 -0)
backend/apps/web/models/admin_settings.py (+75 -0)
📝 backend/apps/web/models/users.py (+10 -0)
📝 backend/apps/web/routers/users.py (+26 -1)
📝 backend/main.py (+35 -5)
📝 src/app.html (+51 -1)
📝 src/lib/apis/users/index.ts (+4 -0)
📝 src/lib/components/admin/EditUserModal.svelte (+195 -77)
📝 src/lib/components/chat/Settings/Interface.svelte (+2 -2)
src/lib/i18n/locales/km-KH/translation.json (+443 -0)
📝 src/lib/i18n/locales/languages.json (+4 -0)
📝 src/routes/(app)/admin/+page.svelte (+5 -0)

📄 Description

Description

This pull request introduces a new settings feature that allows admin users to whitelist models for each user. This functionality enhances the customization options available to admin users, enabling them to specify which models are accessible to individual users, thereby providing a more tailored experience.

Changelog Entry

Added

  • New settings feature to whitelist models for individual users.

Security

  • Enhanced user-specific model access for improved data security.

Additional Information

This update aims to improve user permissions management and overall data security within the application. It provides a granular level of control to administrators, allowing them to refine user access privileges based on specific model requirements.

For any further details, please refer to the related commits and issues associated with this enhancement.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/2158 **Author:** [@mrrtmob](https://github.com/mrrtmob) **Created:** 5/10/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (10+) - [`eab0ee9`](https://github.com/open-webui/open-webui/commit/eab0ee940f7f317e6b339f2c53ac9b6a94aac967) splitLargeChunks to default true - [`5d91a70`](https://github.com/open-webui/open-webui/commit/5d91a704340d33d96f4d28eec9549568c32604ad) remove social - [`b8d7fdf`](https://github.com/open-webui/open-webui/commit/b8d7fdf16e57deaf7faaa4dad7c2c5666e8b18ed) Merge pull request #1965 from open-webui/dev - [`35388a6`](https://github.com/open-webui/open-webui/commit/35388a655d12ec64b72db87cd91b152b9ad20f88) translate - [`9f2b846`](https://github.com/open-webui/open-webui/commit/9f2b846ea7201c320851f78c3a4620408921684c) Merge pull request #2101 from open-webui/dev - [`2bc2a36`](https://github.com/open-webui/open-webui/commit/2bc2a3600d158c1abcfe68e0f991b1ae1c4a328a) splitLargeChunks - [`92402b9`](https://github.com/open-webui/open-webui/commit/92402b96cfe5ec7b6944426a2f203e9f140227b8) splitLargeChunks - [`1cc5e20`](https://github.com/open-webui/open-webui/commit/1cc5e2067e679703f8f1e5b76b437a38fea9bc76) splitLargeChunks - [`f7b9a4b`](https://github.com/open-webui/open-webui/commit/f7b9a4b3e0fdd626e5c5f35169d62d35c8397360) splitLargeChunks - [`a83f650`](https://github.com/open-webui/open-webui/commit/a83f650000f54522532ab82d554379d717291f34) mertge upstream v0.1.124 ### 📊 Changes **16 files changed** (+1065 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `backend/apps/ollama/main.py` (+75 -3) 📝 `backend/apps/openai/main.py` (+35 -5) ➕ `backend/apps/web/internal/migrations/008_admin_settings.py` (+53 -0) ➕ `backend/apps/web/internal/migrations/009_add_model_to_users_table.py` (+50 -0) ➕ `backend/apps/web/models/admin_settings.py` (+75 -0) 📝 `backend/apps/web/models/users.py` (+10 -0) 📝 `backend/apps/web/routers/users.py` (+26 -1) 📝 `backend/main.py` (+35 -5) 📝 `src/app.html` (+51 -1) 📝 `src/lib/apis/users/index.ts` (+4 -0) 📝 `src/lib/components/admin/EditUserModal.svelte` (+195 -77) 📝 `src/lib/components/chat/Settings/Interface.svelte` (+2 -2) ➕ `src/lib/i18n/locales/km-KH/translation.json` (+443 -0) 📝 `src/lib/i18n/locales/languages.json` (+4 -0) 📝 `src/routes/(app)/admin/+page.svelte` (+5 -0) </details> ### 📄 Description ## Description This pull request introduces a new settings feature that allows admin users to whitelist models for each user. This functionality enhances the customization options available to admin users, enabling them to specify which models are accessible to individual users, thereby providing a more tailored experience. ## Changelog Entry ### Added - New settings feature to whitelist models for individual users. ### Security - Enhanced user-specific model access for improved data security. ## Additional Information This update aims to improve user permissions management and overall data security within the application. It provides a granular level of control to administrators, allowing them to refine user access privileges based on specific model requirements. For any further details, please refer to the related commits and issues associated with this enhancement. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:33:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7710