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