16 lines
328 B
JavaScript
16 lines
328 B
JavaScript
|
|
import { Meteor } from 'meteor/meteor';
|
||
|
|
import { Mongo } from 'meteor/mongo';
|
||
|
|
import { check } from 'meteor/check';
|
||
|
|
|
||
|
|
export const UserInfo = new Mongo.Collection('userInfo');
|
||
|
|
|
||
|
|
UserInfo.allow({
|
||
|
|
insert: function(userId, doc){
|
||
|
|
// if use id exists, allow insert
|
||
|
|
return !!userId;
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
Meteor.methods({
|
||
|
|
|
||
|
|
});
|