mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #583] [CLOSED] Feat: Allow All Users Access to Docs Upload and Prompts #59243
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/583
Author: @davidamacey
Created: 1/26/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
115ac4aallow 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
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.rolescheck 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.