Skip to content

Commit

Permalink
[bug] Allow to restrict 'mode' rights while token validation; For bug…
Browse files Browse the repository at this point in the history
… 68198
  • Loading branch information
konovalovsergey committed Sep 15, 2024
1 parent 43b5885 commit 3e0af37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DocService/sources/DocsCoServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2355,7 +2355,7 @@ exports.install = function(server, callbackFunction) {
} else if (data.documentCallbackUrl && !decoded?.editorConfig?.callbackUrl) {
//todo callbackUrl required
res = "editorConfig.callbackUrl";
} else if (data.mode && !decoded?.editorConfig?.mode) {
} else if (data.mode && 'view' !== data.mode && !decoded?.editorConfig?.mode) {//allow to restrict rights to 'view'
res = "editorConfig.mode";
}
return res;
Expand Down

0 comments on commit 3e0af37

Please sign in to comment.