Users can now customize the initial value of USER_PERMISSIONS for Allow Chat Deletion by setting USER_PERMISSIONS_CHAT_DELETION to False.
Changelog Entry
Added
Allow user custom default user permission, specifically Allow Chat Deletion.
🔄 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/open-webui/open-webui/pull/1151
**Author:** [@changchiyou](https://github.com/changchiyou)
**Created:** 3/13/2024
**Status:** ✅ Merged
**Merged:** 3/19/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `feat/custom_default_user_permissions_chat_deletion`
---
### 📝 Commits (3)
- [`04e3b16`](https://github.com/open-webui/open-webui/commit/04e3b168a604d6e327b11a8310e4f1b8f38d1279) config: allow custom default user permissions - chat deletion
- [`c6e14ce`](https://github.com/open-webui/open-webui/commit/c6e14ce3272833ef139f2abcf8fdac70cdcc762c) refactor: restrict the scope of `USER_PERMISSIONS_CHAT_DELETION`
- [`87344ad`](https://github.com/open-webui/open-webui/commit/87344adf2902d40427e928f51658d24e8d5efbb3) refac
### 📊 Changes
**2 files changed** (+7 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/config.py` (+6 -1)
📝 `backend/constants.py` (+1 -1)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation?
> No relevant documentation exists.
- [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
---
## Description
> This is a workaround for #988, which is mentioned at https://github.com/open-webui/open-webui/issues/1022#issuecomment-1992061479.
Users can now customize the initial value of `USER_PERMISSIONS` for `Allow Chat Deletion` by setting `USER_PERMISSIONS_CHAT_DELETION` to `False`.
---
### Changelog Entry
### Added
- Allow user custom default user permission, specifically `Allow Chat Deletion`.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1151
Author: @changchiyou
Created: 3/13/2024
Status: ✅ Merged
Merged: 3/19/2024
Merged by: @tjbck
Base:
dev← Head:feat/custom_default_user_permissions_chat_deletion📝 Commits (3)
04e3b16config: allow custom default user permissions - chat deletionc6e14cerefactor: restrict the scope ofUSER_PERMISSIONS_CHAT_DELETION87344adrefac📊 Changes
2 files changed (+7 additions, -2 deletions)
View changed files
📝
backend/config.py(+6 -1)📝
backend/constants.py(+1 -1)📄 Description
Pull Request Checklist
Description: Briefly describe the changes in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Description
Users can now customize the initial value of
USER_PERMISSIONSforAllow Chat Deletionby settingUSER_PERMISSIONS_CHAT_DELETIONtoFalse.Changelog Entry
Added
Allow Chat Deletion.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.