SiteSettings isPublic
This commit is contained in:
parent
078931b4f9
commit
9ebbe5482a
3 changed files with 12 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ SiteSettings.getSchema = type => new SimpleSchema({
|
|||
type: String,
|
||||
description: String,
|
||||
value: SiteSettingsTypes[type].value,
|
||||
isPublic: Boolean,
|
||||
createdAt: defaultCreatedAt,
|
||||
updatedAt: defaultUpdateAt
|
||||
});
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
import { Meteor } from 'meteor/meteor';
|
||||
import SiteSettings from '../SiteSettings';
|
||||
|
||||
Meteor.publish('settings', () => SiteSettings.find());
|
||||
Meteor.publish('settings', () => SiteSettings.find({ isPublic: true }));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue