From 8383bc708cdef5432c42d1f4750ef2b2a7f02df4 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 9 Sep 2026 18:55:38 +0200 Subject: [PATCH] fix: show the right error when a model cannot be loaded for editing (#29694) Opening the workspace model editor with an id that cannot be loaded redirected back to the model list and then fell through into the write-access check on the same empty model, so a plain not-found id produced "You do not have permission to edit this model". The message pointed people at their permissions for something that was never a permission problem. The editor now stops after the redirect, so that message only appears when the model loaded and the user really cannot edit it. Refs #29629 --- src/routes/(app)/workspace/models/edit/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/(app)/workspace/models/edit/+page.svelte b/src/routes/(app)/workspace/models/edit/+page.svelte index 8bae1f231f..22c6704b2d 100644 --- a/src/routes/(app)/workspace/models/edit/+page.svelte +++ b/src/routes/(app)/workspace/models/edit/+page.svelte @@ -24,6 +24,7 @@ if (!model) { goto('/workspace/models'); + return; } if (!model?.write_access) {