Skip to main content
Participant
September 29, 2020
Question

how can i manage permissions in Embed API

  • September 29, 2020
  • 1 reply
  • 366 views

Hi. I keep all annotations in my database. How can I prevent users from deleting another comments?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Joel Geraci
Community Expert
Community Expert
September 30, 2020

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.