feat: add granular import/export permissions for workspace items#55
Merged
Classic298 merged 1 commit intoworkspace-permissionsfrom Nov 17, 2025
Conversation
Add separate import and export permissions for Models, Prompts, and Tools to allow fine-grained control over who can import/export workspace items. Backend changes: - Add 6 new permission environment variables to config.py - Update DEFAULT_USER_PERMISSIONS with import/export permissions - Update models.py /export and /import endpoints with permission checks - Update prompts.py /create endpoint to allow prompts_import permission - Update tools.py /export and /create endpoints with permission checks - Non-admin users with export permission only export items they have access to Frontend changes: - Add conditional import/export toggles in admin Permissions.svelte - Toggles only show when parent workspace permission is enabled - Update Models.svelte, Prompts.svelte, Tools.svelte with permission checks - Update ModelMenu, PromptMenu, ToolMenu to check export permissions - Replace hardcoded admin checks with permission-based checks All changes are minimal and focused on permission checks only.
Classic298
added a commit
that referenced
this pull request
Nov 18, 2025
…n-webui#19242) * feat: add granular import/export permissions for workspace items (#55) Co-authored-by: Claude <[email protected]> * Fix permissions toggles not saving in EditGroupModal (#58) Co-authored-by: Claude <[email protected]> * Fix permissions toggles not saving in EditGroupModal (#59) Co-authored-by: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.