diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index ded5208d6b..1fe031cdad 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -1208,6 +1208,23 @@ USER_PERMISSIONS_CHAT_DELETE = ( os.environ.get("USER_PERMISSIONS_CHAT_DELETE", "True").lower() == "true" ) +USER_PERMISSIONS_CHAT_DELETE_MESSAGE = ( + os.environ.get("USER_PERMISSIONS_CHAT_DELETE_MESSAGE", "True").lower() == "true" +) + +USER_PERMISSIONS_CHAT_CONTINUE_RESPONSE = ( + os.environ.get("USER_PERMISSIONS_CHAT_CONTINUE_RESPONSE", "True").lower() == "true" +) + +USER_PERMISSIONS_CHAT_REGENERATE_RESPONSE = ( + os.environ.get("USER_PERMISSIONS_CHAT_REGENERATE_RESPONSE", "True").lower() + == "true" +) + +USER_PERMISSIONS_CHAT_RATE_RESPONSE = ( + os.environ.get("USER_PERMISSIONS_CHAT_RATE_RESPONSE", "True").lower() == "true" +) + USER_PERMISSIONS_CHAT_EDIT = ( os.environ.get("USER_PERMISSIONS_CHAT_EDIT", "True").lower() == "true" ) @@ -1290,6 +1307,10 @@ DEFAULT_USER_PERMISSIONS = { "params": USER_PERMISSIONS_CHAT_PARAMS, "file_upload": USER_PERMISSIONS_CHAT_FILE_UPLOAD, "delete": USER_PERMISSIONS_CHAT_DELETE, + "delete_message": USER_PERMISSIONS_CHAT_DELETE_MESSAGE, + "continue_response": USER_PERMISSIONS_CHAT_CONTINUE_RESPONSE, + "regenerate_response": USER_PERMISSIONS_CHAT_REGENERATE_RESPONSE, + "rate_response": USER_PERMISSIONS_CHAT_RATE_RESPONSE, "edit": USER_PERMISSIONS_CHAT_EDIT, "share": USER_PERMISSIONS_CHAT_SHARE, "export": USER_PERMISSIONS_CHAT_EXPORT, diff --git a/backend/open_webui/routers/users.py b/backend/open_webui/routers/users.py index 7b27b45b9d..4d2539a18e 100644 --- a/backend/open_webui/routers/users.py +++ b/backend/open_webui/routers/users.py @@ -146,6 +146,10 @@ class ChatPermissions(BaseModel): params: bool = True file_upload: bool = True delete: bool = True + delete_message: bool = True + continue_response: bool = True + regenerate_response: bool = True + rate_response: bool = True edit: bool = True share: bool = True export: bool = True diff --git a/src/lib/components/admin/Users/Groups.svelte b/src/lib/components/admin/Users/Groups.svelte index 19f7c52d75..9a6412a485 100644 --- a/src/lib/components/admin/Users/Groups.svelte +++ b/src/lib/components/admin/Users/Groups.svelte @@ -71,6 +71,10 @@ params: true, file_upload: true, delete: true, + delete_message: true, + continue_response: true, + regenerate_response: true, + rate_response: true, edit: true, share: true, export: true, diff --git a/src/lib/components/admin/Users/Groups/EditGroupModal.svelte b/src/lib/components/admin/Users/Groups/EditGroupModal.svelte index 1bec9b76b6..151735e3d1 100644 --- a/src/lib/components/admin/Users/Groups/EditGroupModal.svelte +++ b/src/lib/components/admin/Users/Groups/EditGroupModal.svelte @@ -53,6 +53,10 @@ params: true, file_upload: true, delete: true, + delete_message: true, + continue_response: true, + regenerate_response: true, + rate_response: true, edit: true, share: true, export: true, diff --git a/src/lib/components/admin/Users/Groups/Permissions.svelte b/src/lib/components/admin/Users/Groups/Permissions.svelte index 143d20bc30..43cc7b0dba 100644 --- a/src/lib/components/admin/Users/Groups/Permissions.svelte +++ b/src/lib/components/admin/Users/Groups/Permissions.svelte @@ -26,6 +26,10 @@ params: true, file_upload: true, delete: true, + delete_message: true, + continue_response: true, + regenerate_response: true, + rate_response: true, edit: true, share: true, export: true, @@ -292,6 +296,14 @@ {/if} +