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