Back

Permissions on attribute level

  • 0
  • Web
leonardorick
20 Oct, 2023, 21:01

Is there a way to set permissions on attribute level? I wanted to allow the user to update some properties of its own database document but I don't want to allow them to update some properties of the doc.

TL;DR
The user wants to set permissions on specific attributes in a document so that certain fields cannot be updated by the user. They are looking for a way to allow the user to update some properties of their database document while restricting access to specific fields. A related GitHub issue is provided for further information. The solution is not mentioned in this thread.
Tessa
20 Oct, 2023, 21:59
leonardorick
21 Oct, 2023, 20:32

I think this one is more related (the link was on the issue you sent): https://github.com/appwrite/appwrite/issues/5974

It's basically set that the user can update some document except if he is updating a specific field/attribute. I don't want the user to be able to update his 'trial period end' or 'next payment date'. This values should be possible readable but not writable. This way I could only deal with updating this sensitive values server-side

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