summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebar.jade
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-28 12:15:29 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-28 12:15:29 +0200
commitdc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1 (patch)
treed95ad91548aee35dd7bb3c26c4307edac73c903a /client/components/sidebar/sidebar.jade
parent732aa5eccb7fc96b87104b53fbd579e7fe9e6e18 (diff)
downloadwekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.tar.gz
wekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.tar.bz2
wekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.zip
Hide feature non-member users can't use
Fixes #206 Fixes #244
Diffstat (limited to 'client/components/sidebar/sidebar.jade')
-rw-r--r--client/components/sidebar/sidebar.jade5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade
index a28c9d2f..f162fd6c 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -43,8 +43,9 @@ template(name="labelsWidget")
each currentBoard.labels
a.card-label(class="card-label-{{color}}").js-label
span.card-label-name= name
- a.card-label.add-label.js-add-label
- i.fa.fa-plus
+ if currentUser.isBoardAdmin
+ a.card-label.add-label.js-add-label
+ i.fa.fa-plus
template(name="memberPopup")
.board-member-menu