So Appwrite checks if the user is allowed to perform a certain action. In my backend endpoint I might do a lot of logic before I call Appwrite, so before the permissions are checked. Is there a way for me to check on the backend to see if the user has the right permissions before actually calling Appwrite?
I suppose I could get all the teams of the current users and check permissions based on the permissions that are set on the document but this feels quite complicated and prone to errors
if you want to manually check the permissions, then, yes, this is what you'd have to do.
[SOLVED] Easy way to check if user has permissions
Recommended threads
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...
- How do you contact support to cancel a s...
My nephew signed up with my CC without my permission and has forgotten the password to the account. I can't for the life of me get a hold of anyone at appwrite....
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...