diff --git a/chromebook-checkout-meteor/server/users.js b/chromebook-checkout-meteor/server/users.js index aacaf2a..18916bb 100644 --- a/chromebook-checkout-meteor/server/users.js +++ b/chromebook-checkout-meteor/server/users.js @@ -18,11 +18,9 @@ Meteor.publish('chromebook', function() { return Chromebooks.find(); - } else { - - // user not authorized. do not publish secrets - this.stop(); - return; + } + else { + return Chromebooks.find({}, {fields: {number: 1, status: 1, userid: 1, last_checkout: 1}}); } });