Skip to content

Commit ca10fb9

Browse files
authored
💬(copy) wrong permission mentionned on move doc (#1377)
## 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: `<gitmoji>(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 <[email protected]>
1 parent 59e8757 commit ca10fb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frontend/apps/e2e/__tests__/app-impress/doc-grid-dnd.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ test.describe('Doc grid dnd', () => {
106106

107107
await expect(dragOverlay).toBeVisible();
108108
await expect(dragOverlay).toHaveText(
109-
'You must be at least the editor of the target document',
109+
'You must be at least the administrator of the target document',
110110
);
111111

112112
await page.mouse.up();

src/frontend/apps/impress/src/features/docs/docs-grid/components/DocGridContentList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const DraggableDocGridContentList = ({
141141
return t('You must be the owner to move the document');
142142
}
143143
if (!canDrop) {
144-
return t('You must be at least the editor of the target document');
144+
return t('You must be at least the administrator of the target document');
145145
}
146146

147147
return selectedDoc?.title || t('Unnamed document');

0 commit comments

Comments
 (0)