[GH-ISSUE #18650] feat: Import/export model as permission #18661

Closed
opened 2026-04-20 00:52:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @sinejespersen on GitHub (Oct 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18650

Check Existing Issues

  • I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Problem Description

We have users that should be able to import/export models, but should not be administrators

Desired Solution you'd like

we would like to contribute with a fix that makes this line a permission instead of hardcoded admin:

7a83e7dfa3/src/lib/components/workspace/Models.svelte (L311)

Alternatives Considered

No response

Additional Context

No response

Originally created by @sinejespersen on GitHub (Oct 27, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/18650 ### Check Existing Issues - [x] I have searched all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request. ### Problem Description We have users that should be able to import/export models, but should not be administrators ### Desired Solution you'd like we would like to contribute with a fix that makes this line a permission instead of hardcoded admin: https://github.com/open-webui/open-webui/blob/7a83e7dfa367d19f762ec17cac5e4a94ea2bd97d/src/lib/components/workspace/Models.svelte#L311 ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@silentoplayz commented on GitHub (Oct 28, 2025):

I think that if we modify anything related to permissions, especially an admin-only feature like this, we should also update the corresponding import/export permissions for prompts and tools in the Workspace section. A new permissions sections could be created from this.

<!-- gh-comment-id:3454168993 --> @silentoplayz commented on GitHub (Oct 28, 2025): I think that if we modify anything related to permissions, especially an admin-only feature like this, we should also update the corresponding import/export permissions for prompts and tools in the Workspace section. A new permissions sections could be created from this.
Author
Owner

@tjbck commented on GitHub (Oct 28, 2025):

I suppose more of a fundamental question here is, why does a non-admin user need to import and export, which could be exploited and can be destructive?

<!-- gh-comment-id:3455282554 --> @tjbck commented on GitHub (Oct 28, 2025): I suppose more of a fundamental question here is, why does a non-admin user need to import and export, which could be exploited and can be destructive?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18661