mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Small fixes; Default newsletter to *not* be automatically sent out
This commit is contained in:
parent
0af5e365d3
commit
f5c2d21274
5 changed files with 6 additions and 5 deletions
|
@ -74,11 +74,12 @@ export const getDefaultResolvers = collectionName => ({
|
|||
Utils.performCheck(collection.checkAccess, currentUser, doc, collection, documentId);
|
||||
}
|
||||
|
||||
const restrictedDoc = Users.restrictViewableFields(currentUser, collection, doc);
|
||||
|
||||
debug(`//--------------- end ${collectionName} single resolver ---------------//`);
|
||||
|
||||
|
||||
// filter out disallowed properties and return resulting document
|
||||
return Users.restrictViewableFields(currentUser, collection, doc);
|
||||
return restrictedDoc;
|
||||
},
|
||||
|
||||
},
|
||||
|
|
|
@ -76,7 +76,7 @@ var addJob = function () {
|
|||
};
|
||||
|
||||
Meteor.startup(function () {
|
||||
if (getSetting('newsletter.enabled', true)) {
|
||||
if (getSetting('newsletter.enabled', false)) {
|
||||
addJob();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -12,7 +12,6 @@ Package.onUse(function (api) {
|
|||
|
||||
api.use([
|
||||
'vulcan:core@1.8.0',
|
||||
'vulcan:notifications@1.8.0',
|
||||
// dependencies on posts, categories are done with nested imports to reduce explicit dependencies
|
||||
]);
|
||||
|
||||
|
|
|
@ -16,5 +16,6 @@ registerFragment(`
|
|||
groups
|
||||
services
|
||||
avatarUrl
|
||||
pageUrl
|
||||
}
|
||||
`);
|
||||
|
|
|
@ -10,7 +10,7 @@ Package.onUse(function (api) {
|
|||
api.versionsFrom('METEOR@1.5.2');
|
||||
|
||||
api.use([
|
||||
'fourseven:scss',
|
||||
'fourseven:scss@4.5.0',
|
||||
'vulcan:core@1.8.0',
|
||||
'vulcan:i18n@1.8.0',
|
||||
], ['client', 'server']);
|
||||
|
|
Loading…
Add table
Reference in a new issue