only show 'add member' button to users who can edit the board

This commit is contained in:
David Renshaw 2016-09-27 10:49:02 -04:00
parent 1ad44de8c6
commit 95680ef43a

View file

@ -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