Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/common/constants/permission_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def get_workspace_role(self):
Group.SYSTEM_RES_KNOWLEDGE.value: _("Knowledge"),
Group.SYSTEM_RES_KNOWLEDGE_DOCUMENT.value: _("Document"),
Group.SYSTEM_RES_KNOWLEDGE_PROBLEM.value: _("Problem"),
Group.SYSTEM_RES_KNOWLEDGE_HIT_TEST.value: _("Hit-Test"),
Group.SYSTEM_RES_KNOWLEDGE_CHAT_USER.value: _("Dialogue users"),
Group.WORKSPACE_USER_GROUP.value: _("User Group"),
Group.WORKSPACE_CHAT_USER.value: _("Chat User"),
Group.WORKSPACE_WORKSPACE.value: _("Workspace"),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provided update looks good and follows conventional Python coding practices. The changes are minor modifications to add new roles from the Group enum and map them to appropriate labels using translations (_). There aren’t any issues with syntax or logic; this part appears straightforward and efficient for adding support for additional functionality or custom roles.

In summary, the code is clean, well-documented, and functional as intended. If you need further optimizations or have other questions related to code quality or performance, feel free to ask!

Expand Down
Loading