You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm getting a 401 error no matter what combinations of permissions and accounts i test with.
I have read access but not write access.
One thing to note is that the account is unverified. But I'm pretty sure this shouldn't be an issue.
Have you spent some time to check if this issue has been raised before?
The only other issue I could find was #801, but that seemed resolved already?
To Reproduce
I set permissions on my collection
Notice that I've even tried with the user id and put the user into a team to no avail.
In my client, I create
The account is created like it should. I can find it in Console under Users also.
I login successfully. I retrieve the session
I can even get the session again
But as soon as I try to create a document I get
Expected behavior
That account should have write access as specified.
I must admit that these permissions are a bit confusing.
Wouldn't it make sense to give the owner of the document write permission automatically? Or at least make the parameters optional where the default is to give the current user access to that document. Know that I copied most of these snippets of code from your docs.
Either way, thank you for the help.
Thanks for the feedback @iSplasher . We are in the process of a DB refactoring and during that we will address this issue :)
You can follow the discussion here appwrite/rfc#21
Activity
christyjacob4 commentedon Mar 15, 2021
@iSplasher in your
createDocument()function can you also add wildcard permission to thewritepermissions like thiswrite : ['*']iSplasher commentedon Mar 15, 2021
Oh wow, that worked.

I must admit that these permissions are a bit confusing.
Wouldn't it make sense to give the owner of the document write permission automatically? Or at least make the parameters optional where the default is to give the current user access to that document. Know that I copied most of these snippets of code from your docs.
Either way, thank you for the help.
christyjacob4 commentedon Mar 17, 2021
Thanks for the feedback @iSplasher . We are in the process of a DB refactoring and during that we will address this issue :)
You can follow the discussion here appwrite/rfc#21
christyjacob4 commentedon Mar 17, 2021
Please close this issue if you don't have any more doubts 😄