12345678910111213141516171819 |
- Actions = new Mongo.Collection('actions');
- Actions.allow({
- insert(userId, doc) {
- return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
- },
- update(userId, doc) {
- return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
- },
- remove(userId, doc) {
- return allowIsBoardAdmin(userId, Boards.findOne(doc.boardId));
- },
- });
- Actions.helpers({
- description() {
- return this.desc;
- },
- });
|