stable
Clone or download
Read-only
part of story #12454 Lock documents How to test: - call the route on an item who is not a file => error - call the route on an item locked by an other user => error - call the route on a item you have only read permission on it => error - call the route on an item you can update => success, item is now locked by yourself Change-Id: I6138f6e52b55690b9873f8f871472e67eeca9af5
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanFilesResource.php | +89 | −8 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +1 | −1 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php | +78 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +8 | −0 | Go to diff View file |