From 68fdd92736509236f4f7971d5ea5a24d16d25b89 Mon Sep 17 00:00:00 2001 From: Yaman Date: Tue, 10 Feb 2015 18:45:39 -0500 Subject: [PATCH] changed classes back --- chromebook-checkout-meteor/client/admin.html | 4 ++-- chromebook-checkout-meteor/server/users.js | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chromebook-checkout-meteor/client/admin.html b/chromebook-checkout-meteor/client/admin.html index fc6e172..4f7b4c6 100644 --- a/chromebook-checkout-meteor/client/admin.html +++ b/chromebook-checkout-meteor/client/admin.html @@ -31,8 +31,8 @@ {{#each carts}}
{{>cart}} - - + +
{{/each}} {{/momentum}} diff --git a/chromebook-checkout-meteor/server/users.js b/chromebook-checkout-meteor/server/users.js index b591e9e..4b009f2 100644 --- a/chromebook-checkout-meteor/server/users.js +++ b/chromebook-checkout-meteor/server/users.js @@ -10,10 +10,12 @@ Meteor.publish('chromebook', function() { return Chromebooks.find(); } - else { + else if (Meteor.user()) { return Chromebooks.find({}, {fields: {number: 1, status: 1, userid: 1, last_checkout: 1, user: 1}}); - + } else { + return null; } + }); Meteor.publish('carts', function() {