Skip to content

Commit 4ffd80f

Browse files
committed
fix: Resource chat user of common user
1 parent 07ee09c commit 4ffd80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/chat-user/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const {
191191
192192
const permissionObj = ref<any>({
193193
APPLICATION: new ComplexPermission(
194-
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],
194+
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole],
195195
[
196196
PermissionConst.APPLICATION_CHAT_USER_EDIT,
197197
PermissionConst.APPLICATION_CHAT_USER_EDIT.getApplicationWorkspaceResourcePermission(id),
@@ -200,7 +200,7 @@ const permissionObj = ref<any>({
200200
'OR',
201201
),
202202
KNOWLEDGE: new ComplexPermission(
203-
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],
203+
[RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole],
204204
[
205205
PermissionConst.KNOWLEDGE_CHAT_USER_EDIT,
206206
PermissionConst.KNOWLEDGE_CHAT_USER_EDIT.getKnowledgeWorkspaceResourcePermission(id),

0 commit comments

Comments
 (0)