Merge pull request #1024 from jshimko/settings-publication-fix

fix settings publication to hide private fields (take 2)
This commit is contained in:
Sacha Greif 2015-06-16 15:49:29 +09:00
commit 2b772d78ae

View file

@ -3,7 +3,7 @@ Meteor.publish('settings', function() {
var privateFields = {}; var privateFields = {};
// look at Settings.simpleSchema._schema to see which fields should be kept private // look at Settings.simpleSchema._schema to see which fields should be kept private
_.each(Settings.simpleSchema._schema, function (property, key) { _.each(Settings.schema._schema, function (property, key) {
if (property.private) if (property.private)
privateFields[key] = false; privateFields[key] = false;
}); });