From cc3e283a3861d51e23bb23e06255b6901a00c387 Mon Sep 17 00:00:00 2001 From: Wolfgang Meier Date: Mon, 5 Feb 2024 10:28:20 +0000 Subject: [PATCH] Annotations: show better error message if permission to save document is denied --- resources/scripts/annotations/annotations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/annotations/annotations.js b/resources/scripts/annotations/annotations.js index 0bcb14a2..86da77e0 100644 --- a/resources/scripts/annotations/annotations.js +++ b/resources/scripts/annotations/annotations.js @@ -328,7 +328,7 @@ window.addEventListener("WebComponentsReady", () => { if (response.ok) { return response.json(); } - if (response.status === 401) { + if (response.status === 403) { document.getElementById('permission-denied-dialog').show(); throw new Error(response.statusText); }