2015-02-01 23:09:03 -05:00
|
|
|
Chromebooks = new Mongo.Collection("chromebook");
|
2015-02-02 00:03:48 -05:00
|
|
|
// Chromebooks.allow({
|
|
|
|
|
// insert: function (userId, doc) {
|
|
|
|
|
// return Roles.userIsInRole(userId, ['admin']);
|
|
|
|
|
// },
|
|
|
|
|
// update: function (userId, doc) {
|
|
|
|
|
// return (userId != null);
|
|
|
|
|
// },
|
|
|
|
|
// remove: function (userId, doc) {
|
|
|
|
|
// return Roles.userIsInRole(userId, ['admin']);
|
|
|
|
|
// },
|
|
|
|
|
// fetch: []
|
|
|
|
|
// });
|