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