stable

Clone or download

Read-only

Item representation tells if the user can write the item

Part of story #12447: Modal new document for empty/wiki/link In order to hide [new document] buttons for users who cannot update the current folder, we need to send the information "user can write" in REST representation. This will be used later by the frontend. Change-Id: I833abdf4c4a0a120441539bb411213187716b152

Modified Files

Name
M plugins/docman/include/REST/v1/DocmanItemsResource.php +3 −2 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentation.php +7 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +18 −2 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationCollectionBuilder.php +2 −2 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +6 −0 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +5 −2 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +10 −3 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +19 −8 Go to diff View file
M src/common/event/Event.class.php +3 −2 Go to diff View file
M src/common/project/REST/v1/ProjectResource.class.php +11 −7 Go to diff View file