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
- How do I get my PR merged in auto genera...
https://github.com/appwrite/sdk-for-go/pull/48 I have raised this PR today in a sdk-generator repository which is a auto-generated repository. Now, as it is a a...
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...