Rank 3: Container
Appwrite should throw document not accessible by this role but the user can access the doc :(
Votes
0
Replies
19
Participants
Unknown
Messages
20
Rank 3: Container
Appwrite should throw document not accessible by this role but the user can access the doc :(
Rank 3: Container
but userId: 64806f760ae83e634ce3 can also access this
You also need to check collection permissions
From the console 👇
When document security is enabled, users will be able to access documents for which they have been granted either **Document **or **Collection **permissions.
What I meant is that even if the user don't have permission for the document maybe the user has permissions for the collection (read).
Rank 3: Container
ohhh
Rank 3: Container
if the user has read collection, he can also read a doc which he has no perms for?
Rank 3: Container
can see why that's happening
Exactly
Rank 3: Container
but I want my users to get their documents with listDocuments from this collection. But don't want them to access someone elses documents from this collection
Rank 3: Container
I don't think so we can do that, I'll have to write this in my backend and fetch list all docs ig
So remove the read permissions for any
Rank 3: Container
done done its working now
Rank 3: Container
but I wanted to also allow users to do list documents for their own documents
For that you give a user permission of is own documents, don't you?
Rank 3: Container
done done
Rank 3: Container
ohh waittt
Rank 3: Container
fish its working
Rank 3: Container
thanks solved @Binyamin
👍
Admin
[SOLVED] Document security not working