stable
Clone or download
Read-only
Frontend should know if user can edit the artidoc document, and if user can edit a section. A section can be edited only if user can update the title field AND the description field. For write permissions on the document, you may need to hack the permissions table in order to test them. Part of story #37543: edit Artidoc sections Change-Id: Id2a3a66786bd8c7931ea0a48d75eb8f92873bed5
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/include/Artidoc/ArtidocController.php | +4 | −0 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionRepresentation.php | +1 | −0 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/RawSectionsToRepresentationTransformer.php | +3 | −0 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/artidoc.mustache | +5 | −1 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/REST/v1/PaginatedArtidocSectionRepresentationCollectionBuilderTest.php | +4 | −0 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/REST/v1/RawSectionsToRepresentationTransformerTest.php | +21 | −7 | Go to diff View file |