mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
only show 'add member' button to users who can edit the board
This commit is contained in:
parent
1ad44de8c6
commit
95680ef43a
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue