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

Transform in allow does not work properly when defined as null in deny #3108

Closed
darkship opened this issue Nov 17, 2014 · 2 comments
Closed
Labels
confirmed We want to fix or implement it Project:Mongo Driver

Comments

@darkship
Copy link

Hi,
In my repo https://github.com/darkship/test_allow_helpers, you will find that I defined transform : null in deny. It results that transforms aren't applyed to allow too.

Meteor-Community-Packages/meteor-collection2#144

@darkship darkship changed the title Transform in allow do not work properly when defined as null in deny Transform in allow does not work properly when defined as null in deny Nov 18, 2014
@darkship
Copy link
Author

Function Mongo.Collection.prototype._validatedUpdateLine 969 of packages/mongo/collection.js

Only the first transform is applied to the document. if (!factoriedDoc) should be removed twice.

@glasser
Copy link
Contributor

glasser commented Jan 9, 2015

Agree. Would review a PR with tests to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed We want to fix or implement it Project:Mongo Driver
Projects
None yet
Development

No branches or pull requests

2 participants