mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 09:13:21 +03:00
feat: Add ability to link tasks to cards
This commit is contained in:
@@ -83,6 +83,14 @@ module.exports = {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
if (task.linkedCardId) {
|
||||
const availableInputKeys = ['id', 'taskListId', 'position'];
|
||||
|
||||
if (_.difference(Object.keys(inputs), availableInputKeys).length > 0) {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
}
|
||||
|
||||
let nextTaskList;
|
||||
if (!_.isUndefined(inputs.taskListId)) {
|
||||
nextTaskList = await TaskList.qm.getOneById(inputs.taskListId, {
|
||||
|
||||
Reference in New Issue
Block a user