mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 20:28:48 +01:00
- Add permission "No comments". It is like normal user, but does not show comments and activities.
Thanks to xet7 !
This commit is contained in:
parent
bcbe1aaaf5
commit
77efcf7137
12 changed files with 88 additions and 39 deletions
|
|
@ -63,13 +63,13 @@ Lists.attachSchema(new SimpleSchema({
|
|||
|
||||
Lists.allow({
|
||||
insert(userId, doc) {
|
||||
return allowIsBoardMemberNonComment(userId, Boards.findOne(doc.boardId));
|
||||
return allowIsBoardMemberCommentOnly(userId, Boards.findOne(doc.boardId));
|
||||
},
|
||||
update(userId, doc) {
|
||||
return allowIsBoardMemberNonComment(userId, Boards.findOne(doc.boardId));
|
||||
return allowIsBoardMemberCommentOnly(userId, Boards.findOne(doc.boardId));
|
||||
},
|
||||
remove(userId, doc) {
|
||||
return allowIsBoardMemberNonComment(userId, Boards.findOne(doc.boardId));
|
||||
return allowIsBoardMemberCommentOnly(userId, Boards.findOne(doc.boardId));
|
||||
},
|
||||
fetch: ['boardId'],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue