summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-03-28 20:55:02 +0300
committerGitHub <noreply@github.com>2017-03-28 20:55:02 +0300
commit578619d409b4952da34ac5f286c4d80a14b2015d (patch)
tree8c5aec1191ff21975569432a3496dc581f2247b4 /client/components/lists/listBody.js
parent0c36f5f4c27dce6207b1d8093f387d6a55a6da02 (diff)
parente7fddc2bcb71fca3e806ac75280d5c81dfc1529e (diff)
downloadwekan-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/lists/listBody.js')
-rw-r--r--client/components/lists/listBody.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 34c2dcd6..bdc812c7 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -239,3 +239,10 @@ BlazeComponent.extendComponent({
});
},
}).register('addCardForm');
+
+
+Template.listBody.helpers({
+ canSeeAddCard() {
+ return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
+ },
+});