Skip to content

Commit

Permalink
CRISTAL-257: The edit button is presented even if the current user do…
Browse files Browse the repository at this point in the history
…es not have edit rights

* Add missing comment
  • Loading branch information
pjeanjean committed Dec 23, 2024
1 parent 9de0786 commit d7f05d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/backends/backend-xwiki/src/xwikiStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d7f05d4

Please sign in to comment.