[PR #4104] [CLOSED] Feat: creator permission level #4519

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4104
Author: @filipwronskilc
Created: 7/8/2025
Status: Closed

Base: masterHead: filip-dev/creator-permission-level


📝 Commits (4)

  • 47a8448 Enhance user role management by adding 'creator' role across various components and server endpoints. Update role checks in UI components, modals, and API validations to accommodate the new role, ensuring proper access control and functionality.
  • 7221047 Add CreatorRoute for enhanced access control in workspace settings
  • 4ec2c7f Fix role check logic in CreatorRoute component to ensure proper access control for users
  • 1961326 Refactor role validation in server endpoints for consistency

📊 Changes

17 files changed (+113 additions, -36 deletions)

View changed files

📝 frontend/src/App.jsx (+2 -1)
📝 frontend/src/components/Modals/ManageWorkspace/index.jsx (+1 -1)
📝 frontend/src/components/PrivateRoute/index.jsx (+25 -0)
📝 frontend/src/components/SettingsButton/index.jsx (+1 -1)
📝 frontend/src/components/Sidebar/index.jsx (+1 -1)
📝 frontend/src/pages/Admin/Users/NewUserModal/index.jsx (+1 -0)
📝 frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx (+1 -0)
📝 frontend/src/pages/Admin/Users/UserRow/index.jsx (+3 -2)
📝 frontend/src/pages/Admin/Users/index.jsx (+3 -0)
📝 frontend/src/pages/WorkspaceSettings/ChatSettings/index.jsx (+12 -5)
📝 frontend/src/pages/WorkspaceSettings/index.jsx (+7 -5)
📝 server/endpoints/document.js (+8 -2)
📝 server/endpoints/system.js (+8 -2)
📝 server/endpoints/workspaces.js (+37 -14)
📝 server/models/user.js (+1 -1)
📝 server/utils/helpers/admin/index.js (+1 -1)
📝 server/utils/middleware/multiUserProtected.js (+1 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

What is in this change?

New permission level "creator". User with this permission level can:

  • create workpaces
  • open file manager + upload files (no data connectors access)
  • open workspace settings -> access to General Settings, Chat Settings (without choosing the model), Vector Database
  • perform changes to their workspaces

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/4104 **Author:** [@filipwronskilc](https://github.com/filipwronskilc) **Created:** 7/8/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `filip-dev/creator-permission-level` --- ### 📝 Commits (4) - [`47a8448`](https://github.com/Mintplex-Labs/anything-llm/commit/47a8448bca30ed601a510d8e3a1268727c79efb3) Enhance user role management by adding 'creator' role across various components and server endpoints. Update role checks in UI components, modals, and API validations to accommodate the new role, ensuring proper access control and functionality. - [`7221047`](https://github.com/Mintplex-Labs/anything-llm/commit/7221047b1a7f6df17d0a6dc6df9f162786bee7f3) Add CreatorRoute for enhanced access control in workspace settings - [`4ec2c7f`](https://github.com/Mintplex-Labs/anything-llm/commit/4ec2c7f1ca413004663edaecba90b5661303e88d) Fix role check logic in CreatorRoute component to ensure proper access control for users - [`1961326`](https://github.com/Mintplex-Labs/anything-llm/commit/1961326ee66045192e1850b042b1b2211007c9e2) Refactor role validation in server endpoints for consistency ### 📊 Changes **17 files changed** (+113 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/App.jsx` (+2 -1) 📝 `frontend/src/components/Modals/ManageWorkspace/index.jsx` (+1 -1) 📝 `frontend/src/components/PrivateRoute/index.jsx` (+25 -0) 📝 `frontend/src/components/SettingsButton/index.jsx` (+1 -1) 📝 `frontend/src/components/Sidebar/index.jsx` (+1 -1) 📝 `frontend/src/pages/Admin/Users/NewUserModal/index.jsx` (+1 -0) 📝 `frontend/src/pages/Admin/Users/UserRow/EditUserModal/index.jsx` (+1 -0) 📝 `frontend/src/pages/Admin/Users/UserRow/index.jsx` (+3 -2) 📝 `frontend/src/pages/Admin/Users/index.jsx` (+3 -0) 📝 `frontend/src/pages/WorkspaceSettings/ChatSettings/index.jsx` (+12 -5) 📝 `frontend/src/pages/WorkspaceSettings/index.jsx` (+7 -5) 📝 `server/endpoints/document.js` (+8 -2) 📝 `server/endpoints/system.js` (+8 -2) 📝 `server/endpoints/workspaces.js` (+37 -14) 📝 `server/models/user.js` (+1 -1) 📝 `server/utils/helpers/admin/index.js` (+1 -1) 📝 `server/utils/middleware/multiUserProtected.js` (+1 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? New permission level "creator". User with this permission level can: - create workpaces - open file manager + upload files (no data connectors access) - open workspace settings -> access to General Settings, Chat Settings (without choosing the model), Vector Database - perform changes to their workspaces ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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:35:59 -05:00
yindo closed this issue 2026-02-22 18:35:59 -05:00
yindo changed title from [PR #4104] Feat: creator permission level to [PR #4104] [CLOSED] Feat: creator permission level 2026-06-05 15:18:59 -04: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#4519