[PR #351] [MERGED] Create manager role and limit default role #3311

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/351
Author: @shatfield4
Created: 11/9/2023
Status: Merged
Merged: 11/13/2023
Merged by: @timothycarambat

Base: masterHead: 296-multi-user-chat-only-permission-default


📝 Commits (10+)

  • 861f9e1 added manager role to options
  • 90df090 block default role from editing workspace settings on workspace and text input box
  • 5c39c3f block default user from accessing settings at all
  • b28226a create manager route
  • 245f5f5 let pass through if in single user mode
  • d5f1d0f fix permissions for manager and admin roles in settings
  • f2893e3 fix settings button for single user and remove unneeded console.logs
  • fd83f7a rename routes and paths for clarity
  • c513fa2 admin, manager, default roles complete
  • fc74b8c remove unneeded comments

📊 Changes

21 files changed (+455 additions, -449 deletions)

View changed files

📝 frontend/src/App.jsx (+30 -28)
📝 frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx (+1 -1)
📝 frontend/src/components/LLMSelection/LMStudioOptions/index.jsx (+1 -1)
📝 frontend/src/components/Modals/MangeWorkspace/index.jsx (+6 -1)
📝 frontend/src/components/PrivateRoute/index.jsx (+30 -3)
📝 frontend/src/components/SettingsSidebar/index.jsx (+81 -96)
📝 frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx (+3 -1)
📝 frontend/src/components/Sidebar/index.jsx (+36 -26)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+10 -5)
📝 frontend/src/pages/Admin/Users/NewUserModal/index.jsx (+11 -1)
📝 frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx (+9 -2)
📝 frontend/src/pages/Admin/Users/UserRow/index.jsx (+12 -10)
📝 frontend/src/pages/Admin/Users/index.jsx (+32 -0)
📝 frontend/src/pages/GeneralSettings/Security/index.jsx (+1 -1)
📝 frontend/src/utils/paths.js (+23 -28)
📝 server/endpoints/admin.js (+73 -142)
📝 server/endpoints/system.js (+12 -62)
📝 server/endpoints/workspaces.js (+27 -33)
📝 server/models/workspace.js (+3 -2)
server/utils/middleware/multiUserProtected.js (+41 -0)

...and 1 more files

📄 Description

Created a "Manager" role that has all access that the "Admin" role has except for changing

  • LLM Preference
  • Vector DB
  • Embedding Preference

"Default" role

  • Now limited to chatting only
  • Users cannot modify or upload any docs and cannot change any settings

🔄 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/351 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 11/9/2023 **Status:** ✅ Merged **Merged:** 11/13/2023 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `296-multi-user-chat-only-permission-default` --- ### 📝 Commits (10+) - [`861f9e1`](https://github.com/Mintplex-Labs/anything-llm/commit/861f9e1e0fe643959bf192f2bc90ff78c6325f06) added manager role to options - [`90df090`](https://github.com/Mintplex-Labs/anything-llm/commit/90df090bb79e2ea86f4280a46a25145a283e6a8e) block default role from editing workspace settings on workspace and text input box - [`5c39c3f`](https://github.com/Mintplex-Labs/anything-llm/commit/5c39c3f1220eeecc98f6c97b752d9a64e9399d6b) block default user from accessing settings at all - [`b28226a`](https://github.com/Mintplex-Labs/anything-llm/commit/b28226acedf4e704607a29e0dc79ba27cb6d365e) create manager route - [`245f5f5`](https://github.com/Mintplex-Labs/anything-llm/commit/245f5f5d44781318bcc60b22b8376d463b1e0de3) let pass through if in single user mode - [`d5f1d0f`](https://github.com/Mintplex-Labs/anything-llm/commit/d5f1d0f0e2215f589f7ee52e71e21440a9e47ddc) fix permissions for manager and admin roles in settings - [`f2893e3`](https://github.com/Mintplex-Labs/anything-llm/commit/f2893e32eeb8274caee1aca30ebcbf9782dc1658) fix settings button for single user and remove unneeded console.logs - [`fd83f7a`](https://github.com/Mintplex-Labs/anything-llm/commit/fd83f7a93acb816c797a307f9b7d7aeab69feb54) rename routes and paths for clarity - [`c513fa2`](https://github.com/Mintplex-Labs/anything-llm/commit/c513fa2b2c9fa7fde7eb47032a09dc662b8f05ed) admin, manager, default roles complete - [`fc74b8c`](https://github.com/Mintplex-Labs/anything-llm/commit/fc74b8cf1fa4643c8430960500b2eb42acce0a33) remove unneeded comments ### 📊 Changes **21 files changed** (+455 additions, -449 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/App.jsx` (+30 -28) 📝 `frontend/src/components/LLMSelection/AnthropicAiOptions/index.jsx` (+1 -1) 📝 `frontend/src/components/LLMSelection/LMStudioOptions/index.jsx` (+1 -1) 📝 `frontend/src/components/Modals/MangeWorkspace/index.jsx` (+6 -1) 📝 `frontend/src/components/PrivateRoute/index.jsx` (+30 -3) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+81 -96) 📝 `frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx` (+3 -1) 📝 `frontend/src/components/Sidebar/index.jsx` (+36 -26) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+10 -5) 📝 `frontend/src/pages/Admin/Users/NewUserModal/index.jsx` (+11 -1) 📝 `frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx` (+9 -2) 📝 `frontend/src/pages/Admin/Users/UserRow/index.jsx` (+12 -10) 📝 `frontend/src/pages/Admin/Users/index.jsx` (+32 -0) 📝 `frontend/src/pages/GeneralSettings/Security/index.jsx` (+1 -1) 📝 `frontend/src/utils/paths.js` (+23 -28) 📝 `server/endpoints/admin.js` (+73 -142) 📝 `server/endpoints/system.js` (+12 -62) 📝 `server/endpoints/workspaces.js` (+27 -33) 📝 `server/models/workspace.js` (+3 -2) ➕ `server/utils/middleware/multiUserProtected.js` (+41 -0) _...and 1 more files_ </details> ### 📄 Description Created a "Manager" role that has all access that the "Admin" role has except for changing - LLM Preference - Vector DB - Embedding Preference "Default" role - Now limited to chatting only - Users cannot modify or upload any docs and cannot change any settings --- <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:31 -05:00
yindo closed this issue 2026-02-22 18:33:31 -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#3311