[PR #227] [MERGED] Hide delete workspace button on non-admin users if setting is disabled #3252

Closed
opened 2026-02-22 18:33:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/227
Author: @shatfield4
Created: 8/30/2023
Status: Merged
Merged: 8/30/2023
Merged by: @timothycarambat

Base: masterHead: 226-fix-users-can-delete-workspaces-button


📝 Commits (5)

  • cb4a9fc hide delete workspace button on non-admin users if setting is disabled
  • 9a8d77e UI blocking of workspace deletion
  • 2f2775c Revert "UI blocking of workspace deletion"
  • 4ecd429 Show/Hide delete in all modes
  • 522a58b remove unused import

📊 Changes

4 files changed (+60 additions, -8 deletions)

View changed files

📝 frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx (+10 -8)
📝 frontend/src/models/system.js (+16 -0)
📝 server/endpoints/system.js (+28 -0)
📝 server/models/systemSettings.js (+6 -0)

📄 Description

resolves #226

• Added new endpoint to get the users_can_delete_workspaces system setting
• Hides Delete Workspace button on multiuser mode non-admin accounts if setting is disabled


🔄 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/Mintplex-Labs/anything-llm/pull/227 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 8/30/2023 **Status:** ✅ Merged **Merged:** 8/30/2023 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `226-fix-users-can-delete-workspaces-button` --- ### 📝 Commits (5) - [`cb4a9fc`](https://github.com/Mintplex-Labs/anything-llm/commit/cb4a9fc5fdbc1197def2e7d70f09aad5043e686c) hide delete workspace button on non-admin users if setting is disabled - [`9a8d77e`](https://github.com/Mintplex-Labs/anything-llm/commit/9a8d77e233ee5eb44846576608b28863ac724a43) UI blocking of workspace deletion - [`2f2775c`](https://github.com/Mintplex-Labs/anything-llm/commit/2f2775c93760b4cd48efe947ca42e3a1f7d598ba) Revert "UI blocking of workspace deletion" - [`4ecd429`](https://github.com/Mintplex-Labs/anything-llm/commit/4ecd429441e89f5acc62ff72da9a59e31a24af08) Show/Hide delete in all modes - [`522a58b`](https://github.com/Mintplex-Labs/anything-llm/commit/522a58bb63bc11a96533df7f38ea10c39b58e412) remove unused import ### 📊 Changes **4 files changed** (+60 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Modals/MangeWorkspace/Documents/index.jsx` (+10 -8) 📝 `frontend/src/models/system.js` (+16 -0) 📝 `server/endpoints/system.js` (+28 -0) 📝 `server/models/systemSettings.js` (+6 -0) </details> ### 📄 Description resolves #226 • Added new endpoint to get the users_can_delete_workspaces system setting • Hides Delete Workspace button on multiuser mode non-admin accounts if setting is disabled --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:23 -05:00
yindo closed this issue 2026-02-22 18:33:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3252