diff options
author | David Renshaw <david@sandstorm.io> | 2016-09-27 10:49:02 -0400 |
---|---|---|
committer | David Renshaw <david@sandstorm.io> | 2016-11-03 23:42:00 -0400 |
commit | 95680ef43abafd8d6cce9d879519bc8ba5091c8a (patch) | |
tree | 7b941f2e7554d5ab0c66f0d66beaacdc90cb0173 /client/components/sidebar/sidebar.jade | |
parent | 1ad44de8c6774a7caee43eeecdafe1893234e890 (diff) | |
download | wekan-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/sidebar/sidebar.jade')
-rw-r--r-- | client/components/sidebar/sidebar.jade | 5 |
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 |