From d7f05d42bf0475559a21314e2d6dadb9fcddc9ec Mon Sep 17 00:00:00 2001 From: Pierre Jeanjean Date: Mon, 23 Dec 2024 15:27:51 +0100 Subject: [PATCH] CRISTAL-257: The edit button is presented even if the current user does not have edit rights * Add missing comment --- core/backends/backend-xwiki/src/xwikiStorage.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/backends/backend-xwiki/src/xwikiStorage.ts b/core/backends/backend-xwiki/src/xwikiStorage.ts index 409e525b2..4be0089e4 100644 --- a/core/backends/backend-xwiki/src/xwikiStorage.ts +++ b/core/backends/backend-xwiki/src/xwikiStorage.ts @@ -322,6 +322,7 @@ export class XWikiStorage extends AbstractStorage { this.alertsServiceProvider .get() .error(`Could not save page ${page}. Reason: ${errorMessage}`); + // We need to throw an error to notify the editor that the save failed. throw new Error(errorMessage); }