Updated select tool to take edit permissions into account

This commit is contained in:
Mitchell McCaffrey
2021-08-05 14:36:57 +10:00
parent e044a7cd4b
commit 17defb0aec
5 changed files with 54 additions and 23 deletions
+1 -2
View File
@@ -151,8 +151,7 @@ function Map({
onMapNoteCreate,
onMapNoteChange,
onMapNoteRemove,
selectedToolId,
!!(map?.owner === userId || mapState?.editFlags.includes("notes"))
selectedToolId
);
const { selectionTool, selectionMenu, selectionDragOverlay } =