Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addDataCreate doesn't work with populated data #104

Open
beaverusiv opened this issue Nov 24, 2015 · 0 comments
Open

addDataCreate doesn't work with populated data #104

beaverusiv opened this issue Nov 24, 2015 · 0 comments

Comments

@beaverusiv
Copy link

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:

role: {
id: 1
permissions: [{ id:1, writeable: true}, {id:2, writeable: false}],
name: 'Admin'
}

If this was working properly we would see each of the permissions getting these fields added, not just the role. Is this possible in an automatic way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant