All logged in users are now allowed to reorder boards by dragging at All Boards page and Public Boards page.

Thanks to xet7 !

Fixes #3147
This commit is contained in:
Lauri Ojansivu 2020-07-10 18:56:26 +03:00
parent 2cbd7d83f9
commit ba24c4e40c
2 changed files with 8 additions and 6 deletions

View file

@ -25,10 +25,6 @@ BlazeComponent.extendComponent({
},
onRendered() {
function userIsAllowedToMove() {
return Meteor.user();
}
const itemsSelector = '.js-board:not(.placeholder)';
const $boards = this.$('.js-boards');
@ -77,8 +73,6 @@ BlazeComponent.extendComponent({
handle: '.board-handle',
});
}
$boards.sortable('option', 'disabled', !userIsAllowedToMove());
});
},