This commit is contained in:
Yaman Qalieh 2016-08-18 16:44:23 -04:00
parent 8fe801020c
commit 9f610ee046

View File

@ -5,11 +5,6 @@ import {
Mongo
} from 'meteor/mongo';
_uuid4 = function(cc) {
var rr = Math.random() * 16 | 0;
return (cc === 'x' ? rr : (rr & 0x3 | 0x8)).toString(16);
};
superadmins = [
"ybq987@gmail.com",
"ksjdragon@gmail.com"
@ -93,7 +88,7 @@ Security.permit(['insert', 'update', 'remove']).collections([schools, classes, w
Meteor.methods({
'genCode': function() {
return 'xxxxxx'.replace(/[x]/g, _uuid4);
return Math.random().toString(36).substring(7);
},
'createSchool': function(schoolname) {
if (Meteor.user() !== null &&