mirror of
https://github.com/plankanban/planka.git
synced 2025-12-22 09:15:37 +03:00
ref: Refactoring
This commit is contained in:
@@ -97,7 +97,7 @@ module.exports = {
|
||||
boardId: idInput,
|
||||
type: {
|
||||
type: 'string',
|
||||
isIn: List.FINITE_TYPES,
|
||||
isIn: List.KANBAN_TYPES,
|
||||
},
|
||||
position: {
|
||||
type: 'number',
|
||||
@@ -146,7 +146,7 @@ module.exports = {
|
||||
throw Errors.LIST_NOT_FOUND; // Forbidden
|
||||
}
|
||||
|
||||
if (!sails.helpers.lists.isFinite(list)) {
|
||||
if (!sails.helpers.lists.isKanban(list)) {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user