mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Fix Move card from a board to another does not work anymore.
Thanks to lezioul and xet7 ! Fixes wekan/wekan-snap#141
This commit is contained in:
parent
9b004d75c7
commit
9dd0fb88d6
2 changed files with 6 additions and 2 deletions
|
@ -354,7 +354,7 @@ template(name="cardDetailsActionsPopup")
|
|||
a.js-start-voting
|
||||
i.fa.fa-thumbs-up
|
||||
| {{_ 'card-edit-voting'}}
|
||||
if currentBoard.isBoardAdmin
|
||||
if currentUser.isBoardAdmin
|
||||
li
|
||||
a.js-custom-fields
|
||||
i.fa.fa-list-alt
|
||||
|
@ -383,7 +383,7 @@ template(name="cardDetailsActionsPopup")
|
|||
| {{_ 'moveCardToBottom-title'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
if currentBoard.isBoardAdmin
|
||||
if currentUser.isBoardAdmin
|
||||
li
|
||||
a.js-move-card
|
||||
i.fa.fa-arrow-right
|
||||
|
|
|
@ -567,6 +567,10 @@ Template.cardDetailsActionsPopup.helpers({
|
|||
return this.findWatcher(Meteor.userId());
|
||||
},
|
||||
|
||||
isBoardAdmin() {
|
||||
return Meteor.user().isBoardAdmin();
|
||||
},
|
||||
|
||||
canModifyCard() {
|
||||
return (
|
||||
Meteor.user() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue