Replies: 2 comments
|
You have to use conditions in the UI like if(chats.users.include(userId)){
setChat(chat)
}here, userId is the $id of the logged in user. |
0 replies
|
A client-side condition is not authorization — anything you hide in the UI can be called directly through the REST API or an SDK, so Appwrite permissions are role-based, not field-based. The available roles are
Docs: https://appwrite.io/docs/advanced/security/permissions and https://appwrite.io/docs/products/databases/tablesdb/permissions |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
simple. I have a
chatscollections with ausers(string array of user IDs) column. I want only users in the chat to be able to access the related document, how can I do it? Is usingfunctionsthe only way?All reactions