From ca10fb9a1206c585457e0d7d37449c797fd25ee3 Mon Sep 17 00:00:00 2001 From: virgile-dev Date: Fri, 3 Oct 2025 16:16:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC(copy)=20wrong=20permission=20menti?= =?UTF-8?q?onned=20on=20move=20doc=20(#1377)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Purpose To move a doc you have to be at least admin of the destination doc. It was written editor in the alert banner. ## Proposal Change editor for administrator ## External contributions Thank you for your contribution! 🎉 Please ensure the following items are checked before submitting your pull request: - [x] I have read and followed the [contributing guidelines](https://github.com/suitenumerique/docs/blob/main/CONTRIBUTING.md) - [x] I have read and agreed to the [Code of Conduct](https://github.com/suitenumerique/docs/blob/main/CODE_OF_CONDUCT.md) - [x] I have signed off my commits with `git commit --signoff` (DCO compliance) - [x] I have signed my commits with my SSH or GPG key (`git commit -S`) - [x] My commit messages follow the required format: `(type) title description` - [ ] I have added a changelog entry under `## [Unreleased]` section (if noticeable change) - [ ] I have added corresponding tests for new features or bug fixes (if applicable) Signed-off-by: virgile-deville --- .../apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts | 2 +- .../features/docs/docs-grid/components/DocGridContentList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts index ee41ce29..4deda645 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts @@ -106,7 +106,7 @@ test.describe('Doc grid dnd', () => { await expect(dragOverlay).toBeVisible(); await expect(dragOverlay).toHaveText( - 'You must be at least the editor of the target document', + 'You must be at least the administrator of the target document', ); await page.mouse.up(); diff --git a/src/frontend/apps/impress/src/features/docs/docs-grid/components/DocGridContentList.tsx b/src/frontend/apps/impress/src/features/docs/docs-grid/components/DocGridContentList.tsx index ad440c41..6351e65f 100644 --- a/src/frontend/apps/impress/src/features/docs/docs-grid/components/DocGridContentList.tsx +++ b/src/frontend/apps/impress/src/features/docs/docs-grid/components/DocGridContentList.tsx @@ -141,7 +141,7 @@ export const DraggableDocGridContentList = ({ return t('You must be the owner to move the document'); } if (!canDrop) { - return t('You must be at least the editor of the target document'); + return t('You must be at least the administrator of the target document'); } return selectedDoc?.title || t('Unnamed document');