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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/8929
Author: @codefox1387
Created: 1/25/2025
Status: ❌ Closed
Base:
dev← Head:feature/hide-file-upload-button📝 Commits (1)
c6a1b20Update InputMenu.svelte📊 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
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.