a tool for shared writing and social publishing

fix selection logic on readonly leaflets

+2
+2
components/Blocks/index.tsx
··· 27 27 : focusedElement?.parent; 28 28 return focusedPageID === props.entityID; 29 29 }); 30 + let { permissions } = useEntitySetContext(); 30 31 let entity_set = useEntitySetContext(); 31 32 let blocks = useBlocks(props.entityID); 32 33 let foldedBlocks = useUIState((s) => s.foldedBlocks); ··· 95 96 <div 96 97 className={`blocks w-full flex flex-col outline-none h-fit min-h-full`} 97 98 onClick={async (e) => { 99 + if (!permissions.write) return; 98 100 if (useUIState.getState().selectedBlocks.length > 1) return; 99 101 if (e.target === e.currentTarget) { 100 102 if (