Back

Have permissions rules for if a certain thing is set or not

  • 1
  • Tools
  • Databases
  • Web
  • Users
Hexi
4 Jun, 2023, 16:59

So I am having some trouble trying to set so that a user cant edit a certain field after it has been set and when creating one it wont allow you to go higher then a certain number or that you cant set that by yourself for instance

TL;DR
User is requesting for permission rules based on a certain condition. They mention using Pocketbase currently but prefer Appwrite's system. Another user suggests wrapping the logic within a function and giving only 'read' access to the user. User is specifically having trouble with restricting edits to a certain field and limiting the value of a field. Solution is not provided in the thread.
Binyamin
4 Jun, 2023, 18:22

For that you'll probably have to wrap to whole logic within a function. And, Let the user have just read access.

So, all the writing - with the conditions - happens only on the server side.

Hexi
5 Jun, 2023, 08:20

Hmmm would be cool if the added that because I am right now using pocketbase and pushing out whole lot of things with ease but appwrite has a better system overall

Binyamin
5 Jun, 2023, 12:04

Agree that would be cool. It's probably be difficult to cover any permissions use case

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