Copy link to clipboard
Copied
Hi. I keep all annotations in my database. How can I prevent users from deleting another comments?
Copy link to clipboard
Copied
Currently, the way to do this is to listen for ANNOTATION_SELECTED and then compare the current user profile to the creator.name property of the annotation selected. If the two don't match, call unselectAnnotation which will deselect the selected annotation essentially preventing them from interacting with the annotation.