summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-10-20 17:08:54 +0300
committerLauri Ojansivu <x@xet7.org>2017-10-20 17:08:54 +0300
commit2edced54676b99059533977392a92fe79d107edd (patch)
tree54ba4be3ce86e226f71f067b2b9d570a04e103d0
parent509b6405886be35024676ce1e6fba1d760433342 (diff)
downloadwekan-2edced54676b99059533977392a92fe79d107edd.tar.gz
wekan-2edced54676b99059533977392a92fe79d107edd.tar.bz2
wekan-2edced54676b99059533977392a92fe79d107edd.zip
Fix: User with comment only permission can add cards. Thanks to xet7 ! Closes #1301
-rw-r--r--client/components/lists/listHeader.jade7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index c1055008..2927fe59 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -17,9 +17,10 @@ template(name="listHeader")
if isWatching
i.list-header-watch-icon.fa.fa-eye
div.list-header-menu
- unless isWipLimitEnabled
- a.js-add-card.fa.fa-plus.list-header-plus-icon
- a.fa.fa-navicon.js-open-list-menu
+ unless currentUser.isCommentOnly
+ unless isWipLimitEnabled
+ a.js-add-card.fa.fa-plus.list-header-plus-icon
+ a.fa.fa-navicon.js-open-list-menu
template(name="editListTitleForm")
.list-composer