mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 14:48: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
|
|
@ -151,6 +151,16 @@ if (Meteor.isClient) {
|
|||
return board && board.hasMember(this._id);
|
||||
},
|
||||
|
||||
isNotNoComments() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasMember(this._id) && !board.hasNoComments(this._id);
|
||||
},
|
||||
|
||||
isNoComments() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasNoComments(this._id);
|
||||
},
|
||||
|
||||
isNotCommentOnly() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasMember(this._id) && !board.hasCommentOnly(this._id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue