mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
comment only working, naive implementation complete
This commit is contained in:
parent
ec9498fa62
commit
de10be6a21
13 changed files with 64 additions and 18 deletions
|
|
@ -79,10 +79,10 @@ BlazeComponent.extendComponent({
|
|||
});
|
||||
|
||||
function userIsMember() {
|
||||
return Meteor.user() && Meteor.user().isBoardMember();
|
||||
return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
|
||||
}
|
||||
|
||||
// Disable drag-dropping if the current user is not a board member
|
||||
// Disable drag-dropping if the current user is not a board member or is comment only
|
||||
this.autorun(() => {
|
||||
$cards.sortable('option', 'disabled', !userIsMember());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue