Skip to content

Commit

Permalink
Annotations: show better error message if permission to save document…
Browse files Browse the repository at this point in the history
… is denied
  • Loading branch information
wolfgangmm committed Feb 5, 2024
1 parent 34ebf2c commit cc3e283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/scripts/annotations/annotations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cc3e283

Please sign in to comment.