fix tabbing

This commit is contained in:
yamanq 2016-08-08 20:55:02 -04:00
parent e51d35eba9
commit cf7a586cf2

View File

@ -10,8 +10,10 @@ _uuid4 = function(cc) {
'genCode': function() {
return 'xxxxxx'.replace(/[x]/g, _uuid4);
},
//NOT COMPLETE V
'createClass': function(input) {
if(Meteor.user() != null && Meteor.classes.find({status:true, admin:Meteor.userId()}).length < 5){
if(Meteor.user() != null && Meteor.classes.find({status:true, admin:Meteor.userId()}).length < 5 &&
schools.find({name:input.school}).fetch().length > 0){
classes.schema.validate(input);
classes.insert(input);
}