diff --git a/src/routes/(app)/workspace/tools/edit/+page.svelte b/src/routes/(app)/workspace/tools/edit/+page.svelte index 8714a58c70..036c210d73 100644 --- a/src/routes/(app)/workspace/tools/edit/+page.svelte +++ b/src/routes/(app)/workspace/tools/edit/+page.svelte @@ -62,6 +62,12 @@ return null; }); + if (tool && !tool.write_access) { + toast.error($i18n.t('You do not have permission to edit this tool')); + goto('/workspace/tools'); + return; + } + console.log(tool); } });