forked from open-webui/open-webui
config: allow custom default user permissions - chat deletion
Allow Chat Deletion
This commit is contained in:
parent
7ae4669f35
commit
04e3b168a6
1 changed files with 3 additions and 1 deletions
|
@ -288,7 +288,9 @@ DEFAULT_PROMPT_SUGGESTIONS = (
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_USER_ROLE = os.getenv("DEFAULT_USER_ROLE", "pending")
|
DEFAULT_USER_ROLE = os.getenv("DEFAULT_USER_ROLE", "pending")
|
||||||
USER_PERMISSIONS = {"chat": {"deletion": True}}
|
|
||||||
|
USER_PERMISSIONS_CHAT_DELETION = os.getenv('USER_PERMISSIONS_CHAT_DELETION', 'True') == 'True'
|
||||||
|
USER_PERMISSIONS = {"chat": {"deletion": USER_PERMISSIONS_CHAT_DELETION}}
|
||||||
|
|
||||||
|
|
||||||
MODEL_FILTER_ENABLED = os.environ.get("MODEL_FILTER_ENABLED", False)
|
MODEL_FILTER_ENABLED = os.environ.get("MODEL_FILTER_ENABLED", False)
|
||||||
|
|
Loading…
Reference in a new issue