[PR #8929] [CLOSED] Update: Show/Hide File Upload Button w/Permission #22295

Closed
opened 2026-04-20 04:03:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/8929
Author: @codefox1387
Created: 1/25/2025
Status: Closed

Base: devHead: feature/hide-file-upload-button


📝 Commits (1)

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 src/lib/components/chat/MessageInput/InputMenu.svelte (+7 -1)

📄 Description

https://github.com/open-webui/open-webui/issues/8881#issuecomment-2613151026

Changelog Entry

Description

This pull request adds show/hide functionality to the "Upload Files" button based on user permissions. This ensures that the button is only visible to users with the appropriate File Upload permissions or admin privileges.

Added

  • New logic to InputMenu.svelte to conditionally display the "Upload Files" button based on the user's permissions.
  • A reactive variable canUploadFiles in the frontend code, which determines the visibility of the upload functionality.

Changed

  • Refactored existing code to include permission-based checks for the "Upload Files" feature.

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • N/A

Security

  • N/A

Breaking Changes

  • None. This change is backward-compatible.

Additional Information

  • This change aligns with the RBAC system introduced in Open WebUI, extending its functionality to manage access to the "Upload Files" feature.

🔄 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/8929 **Author:** [@codefox1387](https://github.com/codefox1387) **Created:** 1/25/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/hide-file-upload-button` --- ### 📝 Commits (1) - [`c6a1b20`](https://github.com/open-webui/open-webui/commit/c6a1b20849c050013fd5ca34611af57e8c3bfc5f) Update InputMenu.svelte ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/MessageInput/InputMenu.svelte` (+7 -1) </details> ### 📄 Description https://github.com/open-webui/open-webui/issues/8881#issuecomment-2613151026 # Changelog Entry ### Description This pull request adds show/hide functionality to the "Upload Files" button based on user permissions. This ensures that the button is only visible to users with the appropriate File Upload permissions or admin privileges. ### Added - New logic to InputMenu.svelte to conditionally display the "Upload Files" button based on the user's permissions. - A reactive variable canUploadFiles in the frontend code, which determines the visibility of the upload functionality. ### Changed - Refactored existing code to include permission-based checks for the "Upload Files" feature. ### Deprecated - N/A ### Removed - N/A ### Fixed - N/A ### Security - N/A ### Breaking Changes - None. This change is backward-compatible. --- ### Additional Information - This change aligns with the RBAC system introduced in Open WebUI, extending its functionality to manage access to the "Upload Files" feature. --- <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 2026-04-20 04:03:27 -05: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#22295