how can i manage permissions in Embed API

New Here ,
Sep 29, 2020 Sep 29, 2020

Copy link to clipboard

Copied

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

TOPICS
PDF Embed API

Views

69

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 30, 2020 Sep 30, 2020

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines