stable

Clone or download

Read-only

POST and DELETE docman_empty/id/lock route

part of story #12454 Lock documents How to test: - call the POST/DELETE route on an item who is not an empty => error - call the POST/DELETE route on an item locked by an other user => error - call the POST/DELETE route on a item you can read => error - call the POST route on an item you can update => success, item is now locked by yourself - call the DELETE route on an item locked by yourself => success, item is no more locked You should be able to lock/unlock empty directly in vue app Change-Id: Iabe7998a0db7646a29c3a74ef9c4eca4802cbda0

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanEmptyDocumentsResource.php +102 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestEmptyDocumentsTest.php +94 −0 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +7 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +19 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/ActionsDropDown/DropdownMenu.vue +3 −2 Go to diff View file
M plugins/document/scripts/document/store/actions.js +9 −1 Go to diff View file