fix tabbing
This commit is contained in:
parent
e51d35eba9
commit
cf7a586cf2
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user