summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorRyan Helsing <ryanhelsing@gmail.com>2017-03-18 16:01:22 -0400
committerRyan Helsing <ryanhelsing@gmail.com>2017-03-18 16:01:22 -0400
commitec9498fa627228bd411af6070645fa2ed7cd895d (patch)
tree027a1fdb3d6591ad831d8b99d19a361420f8bafe /client/components/lists/listBody.js
parentcf85c9c6cda86ede8fdfe746a8affc33b8ba4719 (diff)
downloadwekan-ec9498fa627228bd411af6070645fa2ed7cd895d.tar.gz
wekan-ec9498fa627228bd411af6070645fa2ed7cd895d.tar.bz2
wekan-ec9498fa627228bd411af6070645fa2ed7cd895d.zip
current progress
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();
+ },
+});