allowed non-admin users to view /checkout
This commit is contained in:
parent
91be0dd559
commit
8fd4f11b5f
@ -18,11 +18,9 @@ Meteor.publish('chromebook', function() {
|
|||||||
|
|
||||||
return Chromebooks.find();
|
return Chromebooks.find();
|
||||||
|
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
// user not authorized. do not publish secrets
|
return Chromebooks.find({}, {fields: {number: 1, status: 1, userid: 1, last_checkout: 1}});
|
||||||
this.stop();
|
|
||||||
return;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user