stable

Clone or download

Read-only

POST and DELETE docman_wikis/id/lock route

part of story #12454 Lock documents How to test: - call the POST/DELETE route on an item who is not a wiki => 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 embedded items directly in vue app Change-Id: Id970af23c61e0511ce6355a31ae8191fea515811

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanWikiResource.php +95 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestWikiTest.php +70 −0 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +11 −4 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 +6 −2 Go to diff View file
M plugins/document/scripts/document/store/actions.js +9 −1 Go to diff View file