Back

Can't delete document with permissions

  • 0
  • Web
  • Cloud
haswalt
28 Nov, 2024, 11:02

A simple scenario:

  1. I have 2 collections with a 1 way relationship. "screens" -> "configs"
  2. The relationship is configured to set NULL on delete.
  3. From a web app I'm logging in using the google auth provider, My use has been given the label "TestAdmin"
  4. Both collections have a permission set to allow all by label
  5. The user can create and update documents in either collection.
  6. Deleting any document results in "The current use is not authorized to perform the current action"

I would expect with the user having all permissions then I should be able to delete documents?

TL;DR
Developers are experiencing issues deleting documents despite having all permissions with labels properly set up. Ensure that the label in question matches what is being referenced in the permission settings. Additionally, check the relationship configuration to ensure it is not restricting the delete action.
Guille
28 Nov, 2024, 11:44

what do you mean with: allow all by label? label:all? or label:TestAdmin?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more