summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorDavid Renshaw <david@sandstorm.io>2016-09-27 10:49:02 -0400
committerDavid Renshaw <david@sandstorm.io>2016-11-03 23:42:00 -0400
commit95680ef43abafd8d6cce9d879519bc8ba5091c8a (patch)
tree7b941f2e7554d5ab0c66f0d66beaacdc90cb0173 /client/components
parent1ad44de8c6774a7caee43eeecdafe1893234e890 (diff)
downloadwekan-95680ef43abafd8d6cce9d879519bc8ba5091c8a.tar.gz
wekan-95680ef43abafd8d6cce9d879519bc8ba5091c8a.tar.bz2
wekan-95680ef43abafd8d6cce9d879519bc8ba5091c8a.zip
only show 'add member' button to users who can edit the board
Diffstat (limited to 'client/components')
-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 51600acf..f3fdd1bc 100644
--- a/client/components/sidebar/sidebar.jade
+++ b/client/components/sidebar/sidebar.jade
@@ -31,8 +31,9 @@ template(name="membersWidget")
each currentBoard.activeMembers
+userAvatar(userId=this.userId showStatus=true)
if isSandstorm
- a.member.add-member.sandstorm-powerbox-request-identity
- i.fa.fa-plus
+ if currentUser.isBoardMember
+ a.member.add-member.sandstorm-powerbox-request-identity
+ i.fa.fa-plus
else if currentUser.isBoardAdmin
a.member.add-member.js-manage-board-members
i.fa.fa-plus