AppwriteException: The current user is not authorized to perform the requested action.
- 0
- Databases
- React Native
- Cloud
Attempting to delete a document from a collection, and having the following error returned:
AppwriteException: The current user is not authorized to perform the requested action.
There are no document-level permissions set. It's my understanding that document level permissions are inherited from collection level permissions, which I've set true for all CRUD operations for the User role.
Document security on all collections is disabled.
The document that I'm trying to delete was created by the same user, and so the user has the ability to create and update the document. There's another collection that is exactly the same in terms of permissions and configuration, and the user is able to create and delete documents in that collection without any problem.
The problematic collection is one setup with relationship attributes to other collections - and the referenced collections have the same permission configuration - CRUD for all users.
What could be the problem?
Btw, the relationship attribute delete behaviour is set ID to NULL on delete.
changing to cascade for all relationships also doesn't work.
Recommended threads
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...
- Auth working for emulator but not for ph...
hey guys i'm using appwrite for expo react native it is working perfectly for emulator but does not working for physical devices can u explain any one and it is...
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.