mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
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) {
|
||||
return
|
||||
}
|
||||
// 共享过来的工具不让编辑
|
||||
if (isShared.value) {
|
||||
return
|
||||
}
|
||||
ToolDrawertitle.value = data ? t('views.tool.editTool') : t('views.tool.createTool')
|
||||
if (data) {
|
||||
loadSharedApi({ type: 'tool', systemType: apiType.value })
|
||||
|
|
|
|||
Loading…
Reference in New Issue