I want to delete a document as a user (which has document permissions including delete), the document has a relation (the user has also document permissions on that document including delete).
I keep getting AppwriteException: The current user is not authorized to perform the requested action.
The typescript code I use to delete the document:
export async function deleteDocument(id: string) {
return await databases.deleteDocument(
DATABASE_ID,
COLLECTION_ID,
id
);
}
Recommended threads
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems