From 02a4f83be72887dcdc75523fbc96dab5ef96bbfa Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Fri, 13 Jun 2025 11:50:23 +0500 Subject: [PATCH] Fix table inplace edit (#9220) Signed-off-by: Denis Bykhov --- plugins/view-resources/src/components/Table.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/view-resources/src/components/Table.svelte b/plugins/view-resources/src/components/Table.svelte index cc6c2400c6..935a6e2c09 100644 --- a/plugins/view-resources/src/components/Table.svelte +++ b/plugins/view-resources/src/components/Table.svelte @@ -331,6 +331,13 @@ } } } + + async function canEdit (object: Doc): Promise { + if (client.getHierarchy().isDerived(object._class, core.class.Space)) { + return await canEditSpace(object) + } + return true + } {#if !model || isBuildingModel} @@ -444,7 +451,7 @@ {/if} {/if} - {#await canEditSpace(object) then canEditObject} + {#await canEdit(object) then canEditObject} {#if row < rowLimit} {#each model.filter((m) => !m.displayProps?.grow) as attribute, cell}