#✅ Dynamic write permission based on field value possible?

13 messages · Page 1 of 1 (latest)

thick lightBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

#

✅ Dynamic write permission based on field value possible?

thick lightBOT
thick lightBOT
thick lightBOT
bitter kindle
edgy charm
#

Thx. I saw that doc already, but did not comprehend how this could help me.

#

Dynamic write permission based on field value possible?

#

Tried this, but I get a forbidden response.

bitter kindle
#

Add this to your rule AND (with your collection and field names of course -- also you will need to subtend that Active Project...Equals admin under the AND

{"projects":{"projects_users":{"users":{"_eq":"$CURRENT_USER.id"}}}}
edgy charm
#

Tried this, but still get a 403 response.
If I remove the last line (with the role), it works.

#

Solved. "role" is a multiple-dropdown-csv field. Changing "eq" to "contains" made it work. THanks Jonathan.

thick lightBOT
#

✅ Dynamic write permission based on field value possible?