feat: prevent editing of shared tools in ToolListContainer
--bug=1057658 --user=刘瑞斌 【共享资源】工作空间用户可以编辑当前工作空间的共享工具 https://www.tapd.cn/62980211/s/1719993
This commit is contained in:
parent
e8d29e2cef
commit
74b76d9914
@ -366,6 +366,10 @@ function openCreateDialog(data?: any) {
|
|||||||
if (data?.template_id) {
|
if (data?.template_id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 共享过来的工具不让编辑
|
||||||
|
if (isShared.value) {
|
||||||
|
return
|
||||||
|
}
|
||||||
ToolDrawertitle.value = data ? t('views.tool.editTool') : t('views.tool.createTool')
|
ToolDrawertitle.value = data ? t('views.tool.editTool') : t('views.tool.createTool')
|
||||||
if (data) {
|
if (data) {
|
||||||
loadSharedApi({ type: 'tool', systemType: apiType.value })
|
loadSharedApi({ type: 'tool', systemType: apiType.value })
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user