mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 06:38:49 +01:00
Merge pull request #925 from rhelsing/comment-permissions
Comment permissions
This commit is contained in:
commit
578619d409
22 changed files with 177 additions and 63 deletions
|
|
@ -121,6 +121,16 @@ if (Meteor.isClient) {
|
|||
return board && board.hasMember(this._id);
|
||||
},
|
||||
|
||||
isNotCommentOnly() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasMember(this._id) && !board.hasCommentOnly(this._id);
|
||||
},
|
||||
|
||||
isCommentOnly() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasCommentOnly(this._id);
|
||||
},
|
||||
|
||||
isBoardAdmin() {
|
||||
const board = Boards.findOne(Session.get('currentBoard'));
|
||||
return board && board.hasAdmin(this._id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue