stable
Clone or download
Read-only
This is part of: story #12452 Delete folder/items How to test: - Try to delete a wiki / link / embedded_file or an empty document --> You get an error - Try to delete a file as a docman reader or an anonymous user --> You get an error - Try to delete a file locked by another user --> You get an error (only if you are not project manager) - Try to delete a file locked by you --> It works - Try to delete a file not locked --> It works Change-Id: Iaef7c6a7fe1f2e32750d1edfdf1f33ea4e45b043
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/Docman_Item.class.php | +5 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanFilesResource.php | +49 | −4 | Go to diff View file |
A | plugins/docman/include/REST/v1/DocumentBeforeDeletionValidatorVisitor.php | +107 | −0 | Go to diff View file |
A | plugins/docman/phpunit/REST/v1/DocumentBeforeDeletionValidatorVisitorTest.php | +112 | −0 | Go to diff View file |
M | plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po | +3 | −0 | 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 | +104 | −2 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +53 | −4 | Go to diff View file |