mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
Merge pull request #1024 from jshimko/settings-publication-fix
fix settings publication to hide private fields (take 2)
This commit is contained in:
commit
2b772d78ae
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ Meteor.publish('settings', function() {
|
|||
var privateFields = {};
|
||||
|
||||
// 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)
|
||||
privateFields[key] = false;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue