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}