mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
23 lines
558 B
JavaScript
23 lines
558 B
JavaScript
import NewsletterSubscribe from '../components/NewsletterSubscribe.jsx';
|
|
import Users from 'meteor/vulcan:users';
|
|
|
|
Users.addField([
|
|
{
|
|
fieldName: 'newsletter_subscribeToNewsletter',
|
|
fieldSchema: {
|
|
label: 'Subscribe to Newsletter',
|
|
type: Boolean,
|
|
optional: true,
|
|
defaultValue: false,
|
|
insertableBy: ['members'],
|
|
editableBy: ['members'],
|
|
viewableBy: ['guests'],
|
|
control: NewsletterSubscribe,
|
|
group: {
|
|
name: "newsletter",
|
|
label: "Newsletter",
|
|
order: 3
|
|
}
|
|
}
|
|
},
|
|
]);
|