[PR #583] [CLOSED] Feat: Allow All Users Access to Docs Upload and Prompts #7183

Closed
opened 2025-11-11 17:19:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/583
Author: @davidamacey
Created: 1/26/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 115ac4a allow users to docs and prompts

📊 Changes

3 files changed (+66 additions, -66 deletions)

View changed files

📝 backend/apps/web/routers/documents.py (+3 -3)
📝 backend/apps/web/routers/prompts.py (+3 -3)
📝 src/lib/components/layout/Sidebar.svelte (+60 -60)

📄 Description

New Feature Request

Requesting to implement a new feature.

User Story

I would like to use this webui for a small team to share content for chat conversations. I am currently not able to upload documents as a user.

Only users with admin are able to upload documents and create prompts. Thus, requiring all users to have admin access. This could lead to unintended consequences with a user accidentally deleting or change access that only an admin should have access.

Bonus Benefits

With a small team of users, this allows users to see and share the types of prompts other users are creating. Resulting in increase of efficiency in prompt engineering and collaboration.

Solution

  1. Allow UI to rending Documents and Prompts in sidebar. Edit side bar svelte.
  2. Allow Admin and Users to upload, edit Documents as well as Prompts add/edit. Edit routers accordingly.

Tested locally on my machine, building in docker. User 'admin' in one browser, and test 'user' in another browser. Both sessions updated accordingly. Documents and prompts shared between Admin and User accounts.

Request Review

Requesting review and feedback as required. If there is a better implementation or a user.roles check that I missed, I am happy to assist with a change.

Thank you for your time and reviewing this update.


🔄 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/583 **Author:** [@davidamacey](https://github.com/davidamacey) **Created:** 1/26/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`115ac4a`](https://github.com/open-webui/open-webui/commit/115ac4abdced42474294c29654151cc6cecb385b) allow users to docs and prompts ### 📊 Changes **3 files changed** (+66 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/web/routers/documents.py` (+3 -3) 📝 `backend/apps/web/routers/prompts.py` (+3 -3) 📝 `src/lib/components/layout/Sidebar.svelte` (+60 -60) </details> ### 📄 Description ## New Feature Request Requesting to implement a new feature. ### User Story I would like to use this webui for a small team to share content for chat conversations. I am currently not able to upload documents as a user. Only users with admin are able to upload documents and create prompts. Thus, requiring all users to have admin access. This could lead to unintended consequences with a user accidentally deleting or change access that only an admin should have access. ### Bonus Benefits With a small team of users, this allows users to see and share the types of prompts other users are creating. Resulting in increase of efficiency in prompt engineering and collaboration. ### Solution 1. Allow UI to rending Documents and Prompts in sidebar. Edit side bar svelte. 2. Allow Admin and Users to upload, edit Documents as well as Prompts add/edit. Edit routers accordingly. Tested locally on my machine, building in docker. User 'admin' in one browser, and test 'user' in another browser. Both sessions updated accordingly. Documents and prompts shared between Admin and User accounts. ## Request Review Requesting review and feedback as required. If there is a better implementation or a `user.roles` check that I missed, I am happy to assist with a change. Thank you for your time and reviewing this update. --- <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:19:29 -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#7183