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
- [SOLVED] Error upgrading from 1.8.1 to 1...
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...