Skip to content

Commit 74b76d9

Browse files
committed
feat: prevent editing of shared tools in ToolListContainer
--bug=1057658 --user=刘瑞斌 【共享资源】工作空间用户可以编辑当前工作空间的共享工具 https://www.tapd.cn/62980211/s/1719993
1 parent e8d29e2 commit 74b76d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@ function openCreateDialog(data?: any) {
366366
if (data?.template_id) {
367367
return
368368
}
369+
// 共享过来的工具不让编辑
370+
if (isShared.value) {
371+
return
372+
}
369373
ToolDrawertitle.value = data ? t('views.tool.editTool') : t('views.tool.createTool')
370374
if (data) {
371375
loadSharedApi({ type: 'tool', systemType: apiType.value })

0 commit comments

Comments
 (0)