Allow more than one assignee.

Thanks to xet7 !

Fixes #3302
This commit is contained in:
Lauri Ojansivu 2020-10-16 23:56:20 +03:00
parent f6d000b26a
commit acf9e7caea

View file

@ -1412,15 +1412,24 @@ Cards.mutations({
assignAssignee(assigneeId) {
// If there is not any assignee, allow one assignee, not more.
/*
if (this.getAssignees().length === 0) {
return {
$addToSet: {
assignees: assigneeId,
},
};
} else {
return false;
}
*/
// Allow more that one assignee:
// https://github.com/wekan/wekan/issues/3302
return {
$addToSet: {
assignees: assigneeId,
},
};
//} else {
// return false,
//}
},
unassignMember(memberId) {