• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

279

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
Community Expert ,
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.

Votes

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
Resources