Back

[SOLVED] Easy way to check if user has permissions

  • 0
  • Self Hosted
  • General
WhiteWalker72
8 Nov, 2023, 16:12

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?

TL;DR
There is no TL;DR for this support thread.
WhiteWalker72
9 Nov, 2023, 15:09

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

Drake
13 Nov, 2023, 21:13

if you want to manually check the permissions, then, yes, this is what you'd have to do.

WhiteWalker72
14 Nov, 2023, 07:17

[SOLVED] Easy way to check if user has permissions

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more