Hello,
My question is about setting the permission for updating the documents of the collections.
My vite reactjs web app uses Google sign for adding the users to my users collection. Those users can make notes which get saved in another collection called notes.
Since I use Google to add users to my users collection, is "Any" the only group that I can give permission to modify my notes collection? I have tried other groups, but all of them give the error about the lack of authorization.
This is the flow of the application:
- The user opens the vite reactjs web app.
- They do not see anything expect the Sign in with Google button.
- They sign using their Gooogle account and their email and username gets saved in the
userscollection. - They are taken to a page where they can create notes.
- After writing the note and clicking on "post", their note is saved in the
notescollection.
Currently, the only way that I have been able to make the users post notes that were successfully saved in the notes collection has been by setting the permission for notes collection to "Any." When I select any other group, I get the error about the lack of authorization for performing that action.
I do not have any accounts in the Users or Team category of the Auth section, as the account information comes from the users' Google account and the necessary information gets saved in the users collection of my database.
Any clarifying comments about the cause of this is greatly appreciated.
Recommended threads
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...