The policies addDataCreate and addDataUpdate are meant to be run on routes that save data to automatically set and update createdUser and updatedUser fields but this doesn't work if you're saving populated data, e.g. saving a role and permissions it has a relationship to in one call like so:
The policies
addDataCreate
andaddDataUpdate
are meant to be run on routes that save data to automatically set and updatecreatedUser
andupdatedUser
fields but this doesn't work if you're saving populated data, e.g. saving a role and permissions it has a relationship to in one call like so:If this was working properly we would see each of the
permissions
getting these fields added, not just therole
. Is this possible in an automatic way?