mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04: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 = {};
|
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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue