Back

Permission Error on Delete Operation

  • 1
  • Teams
  • Flutter
  • Databases
  • General
  • Users
burakcbdn
8 Oct, 2023, 17:12

I have a collection with team permission to delete, but when I try to delete a document from my Flutter app, I get ‘user unauthorized’ error. (I can perform other operations with team role account.

TL;DR
User is experiencing a permission error when trying to delete a document from a collection. They have checked if the collection has relationships and if the user has access to related documents. The user has also tried giving "any" role permission to delete, but still encounters the same error. They are using the self-hosted version of the appwrite SDK 1.3.x. The user can perform other operations with the team role account. No solution is provided in the support thread.
burakcbdn
8 Oct, 2023, 17:20

it throws same error even if I make "Any" role to be delete all operations

D5
8 Oct, 2023, 17:38

You're using cloud or self-hosted?

D5
8 Oct, 2023, 17:38

If self-hosted, what version?

burakcbdn
8 Oct, 2023, 17:43

self hosted, 1.3.x

D5
8 Oct, 2023, 18:18

What's the appwrite SDK version you're using?

burakcbdn
8 Oct, 2023, 19:10

9.0.1

D5
8 Oct, 2023, 19:18

Hmm that seems to be correct for the version you're using

D5
8 Oct, 2023, 19:19

Are you sure that you have the app added in the dashboard?

D5
8 Oct, 2023, 19:19

As platform

burakcbdn
8 Oct, 2023, 19:25

yep, I am using all other functionalities wtihout any problem

burakcbdn
8 Oct, 2023, 19:25

but there is a problem with only delete operation

burakcbdn
8 Oct, 2023, 19:25

I did not tried deleting documents from other collections but in anyway I need to be able to delete from that collection too

burakcbdn
8 Oct, 2023, 19:26

and as I said, even if I put "any" role to be able to delete, it throws same error

D5
8 Oct, 2023, 19:34

Could you please send the exact error and the error being shown after running docker compose logs appwrite?

burakcbdn
8 Oct, 2023, 19:35

Okay I will send it when I try

burakcbdn
10 Oct, 2023, 18:42

sorry for late reply

burakcbdn
10 Oct, 2023, 18:43
burakcbdn
10 Oct, 2023, 18:57

it is very weird

burakcbdn
10 Oct, 2023, 18:58

yesterday, the collection that I get error, now I can delete on that collection

burakcbdn
10 Oct, 2023, 18:58

but now I cannot delete in some other collection

burakcbdn
10 Oct, 2023, 18:58

same error

Drake
10 Oct, 2023, 19:43

does the colleciton have relationships? Does the user have access on the related documents?

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