diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-03-28 20:55:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 20:55:02 +0300 |
commit | 578619d409b4952da34ac5f286c4d80a14b2015d (patch) | |
tree | 8c5aec1191ff21975569432a3496dc581f2247b4 /client/components/cards/cardDetails.js | |
parent | 0c36f5f4c27dce6207b1d8093f387d6a55a6da02 (diff) | |
parent | e7fddc2bcb71fca3e806ac75280d5c81dfc1529e (diff) | |
download | wekan-578619d409b4952da34ac5f286c4d80a14b2015d.tar.gz wekan-578619d409b4952da34ac5f286c4d80a14b2015d.tar.bz2 wekan-578619d409b4952da34ac5f286c4d80a14b2015d.zip |
Merge pull request #925 from rhelsing/comment-permissions
Comment permissions
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index b7e0ef76..b39f8e59 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -28,6 +28,10 @@ BlazeComponent.extendComponent({ return card.findWatcher(Meteor.userId()); }, + canModifyCard() { + return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); + }, + scrollParentContainer() { const cardPanelWidth = 510; const bodyBoardComponent = this.parentComponent(); @@ -140,6 +144,10 @@ Template.cardDetailsActionsPopup.helpers({ isWatching() { return this.findWatcher(Meteor.userId()); }, + + canModifyCard() { + return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); + }, }); Template.cardDetailsActionsPopup.events({ |