stable

Clone or download

Read-only

feat: add edit section permission

Check if the user can edit the document and each section. The edit button will be displayed for each section he has access to. Part of story #37543: edit ArtifactsAsDocument sections Change-Id: I1a8b2d715348899c3a43c73c029806e943e7b62f

Modified Files

Name
A plugins/artidoc/scripts/artidoc/src/can-user-edit-document-injection-key.ts +22 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue +3 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.test.ts +19 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.vue +30 βˆ’27 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.vue +1 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +59 βˆ’36 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +24 βˆ’14 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/artidoc-section.factory.ts +1 βˆ’1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/artidoc-section.type.ts +1 βˆ’0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +2 βˆ’0 Go to diff View file