I want to create what is more or less a ticket system using Directus.
I have a ticket model and a ticket_message model. There’s a one-to-many relation between the two.
How would I set up the permissions so that users can only create ticket messages related to their own tickets?
I’ve tried to set up an access policy, but there I can only create a validation for the ticket_id itself, not for the user_created field on the related item.
Yes, that’s the approach I currently have for creating tickets.
What I am talking about however is creating ticket messages. I only want users to be able to create messages related to tickets that they have created.
Basically you are looking for a rule limiting the update permission to $CURRENT_USER dynamic variable
(Even this link doesn’t seem to work atm. google for “directus filter rules”)