summaryrefslogtreecommitdiffstats
path: root/client/components/boards
diff options
context:
space:
mode:
authorRyan Helsing <ryanhelsing@gmail.com>2017-03-18 15:22:40 -0400
committerRyan Helsing <ryanhelsing@gmail.com>2017-03-18 15:22:40 -0400
commit383daf6f6416e6e3dfe98cf9fcc5528948f35999 (patch)
tree7603c6f01f0ac18846943e7c9478f1bf512937f1 /client/components/boards
parente6276271b1a49bb705ef8777150634c8704bdc9b (diff)
downloadwekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.tar.gz
wekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.tar.bz2
wekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.zip
cant see add list if comment only
Diffstat (limited to 'client/components/boards')
-rw-r--r--client/components/boards/boardBody.jade2
-rw-r--r--client/components/boards/boardBody.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/client/components/boards/boardBody.jade b/client/components/boards/boardBody.jade
index 288590da..fe10c921 100644
--- a/client/components/boards/boardBody.jade
+++ b/client/components/boards/boardBody.jade
@@ -25,7 +25,7 @@ template(name="boardBody")
+list(this)
if currentCardIsInThisList
+cardDetails(currentCard)
- if currentUser.isBoardMember
+ if canSeeAddList
+addListForm
template(name="addListForm")
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 4703bc91..370db13b 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -204,3 +204,9 @@ BlazeComponent.extendComponent({
}];
},
}).register('addListForm');
+
+Template.boardBody.helpers({
+ canSeeAddList() {
+ return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
+ },
+});