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