Updated meteor; Modified the assignments byPerson page considerably to improve the workflow; Added an external id to sites; Added an import for students; Improved the students page.

This commit is contained in:
2023-06-16 11:52:48 -07:00
parent 9444cac85d
commit 3c76d5e6a0
15 changed files with 664 additions and 180 deletions

View File

@@ -13,14 +13,14 @@ if (Meteor.isServer) {
});
}
Meteor.methods({
'sites.update'(_id, name) {
'sites.update'(_id, name, externalId) {
if(Roles.userIsInRole(Meteor.userId(), "admin", {anyScope:true})) {
Sites.update({_id}, {$set: {name}});
Sites.update({_id}, {$set: {name, externalId}});
}
},
'sites.add'(name) {
'sites.add'(name, externalId) {
if(Roles.userIsInRole(Meteor.userId(), "admin", {anyScope:true})) {
Sites.insert({name});
Sites.insert({name, externalId});
}
},
'sites.remove'(_id) {