mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
31 lines
No EOL
541 B
JavaScript
31 lines
No EOL
541 B
JavaScript
InviteSchema = new SimpleSchema({
|
|
_id: {
|
|
type: String,
|
|
optional: true
|
|
},
|
|
invitingUserId: {
|
|
type: String,
|
|
optional: true
|
|
},
|
|
invitedUserEmail: {
|
|
type: String,
|
|
regEx: SimpleSchema.RegEx.Email
|
|
},
|
|
accepted: {
|
|
type: Boolean,
|
|
optional: true
|
|
}
|
|
});
|
|
|
|
Invites = new Meteor.Collection("invites", {
|
|
schema: InviteSchema
|
|
});
|
|
|
|
|
|
// invites are managed through Meteor method
|
|
|
|
Invites.deny({
|
|
insert: function(){ return true; },
|
|
update: function(){ return true; },
|
|
remove: function(){ return true; },
|
|
}); |