Reorganized assignment UI. Added searching by person.
This commit is contained in:
@@ -14,7 +14,8 @@ if (Meteor.isServer) {
|
||||
|
||||
// This code only runs on the server
|
||||
Meteor.publish('students', function(siteId) {
|
||||
return Students.find({siteId});
|
||||
if(siteId) check(siteId, String);
|
||||
return siteId ? Students.find({siteId}) : Students.find({});
|
||||
});
|
||||
|
||||
Meteor.methods({
|
||||
|
||||
Reference in New Issue
Block a user