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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user