Closed ziemek closed 6 years ago
Synctos is in fact capable of enforcing the constraint, and I would argue it's an important enough constraint that it should probably be enforced both here and on the client.
The cannotDelete
document validator attribute can be a function that accepts doc
and oldDoc
parameters, which can be checked for the appropriate type.
👍👍 will make it so
Addressed comments, ready for another review.
We can delete shoebox items that aren't bank items. I don't think there is a way to enforce that constraint in synctos so this allows deletion of all items, and the ui will enforce that bank items are non-deletable.