Skip to content

Commit 1276ec8

Browse files
committed
fix: Relation jump application error
1 parent f7538f5 commit 1276ec8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/src/components/resource_mapping/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ async function getWorkspaceList() {
352352
const hasResourceWorkspacePermission = (row: any) => {
353353
return permissionMap[row.source_type.toLowerCase() as 'application' | 'knowledge'][
354354
'workspace'
355-
].jump_read(row.id)
355+
].jump_read(row.source_id)
356356
}
357357
358358
const hasResourceSystemManagePermission = (row: any) => {

ui/src/permission/application/workspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const workspace = {
216216
'OR'
217217
),
218218
overview_read: () => false,
219-
jump_read: (source_id: string) => {
219+
jump_read: (source_id: string) =>
220220
hasPermission(
221221
[
222222
new ComplexPermission(
@@ -237,7 +237,7 @@ const workspace = {
237237
],
238238
'OR',
239239
)
240-
},
240+
,
241241
access_read: () => false,
242242
chat_user_read: () => false,
243243
chat_log_read: () => false

0 commit comments

Comments
 (0)