From 7ce9b9a5e6967a739e5b2e38a938dc85ca3f5659 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Sat, 12 Jul 2025 17:42:40 +0800 Subject: [PATCH] fix: Resource chat user of common user --- ui/src/views/chat-user/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/chat-user/index.vue b/ui/src/views/chat-user/index.vue index 5c604f741fe..67e8ae875c3 100644 --- a/ui/src/views/chat-user/index.vue +++ b/ui/src/views/chat-user/index.vue @@ -191,7 +191,7 @@ const { const permissionObj = ref({ APPLICATION: new ComplexPermission( - [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole], + [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole], [ PermissionConst.APPLICATION_CHAT_USER_EDIT, PermissionConst.APPLICATION_CHAT_USER_EDIT.getApplicationWorkspaceResourcePermission(id), @@ -200,7 +200,7 @@ const permissionObj = ref({ 'OR', ), KNOWLEDGE: new ComplexPermission( - [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole], + [RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole], [ PermissionConst.KNOWLEDGE_CHAT_USER_EDIT, PermissionConst.KNOWLEDGE_CHAT_USER_EDIT.getKnowledgeWorkspaceResourcePermission(id),