From 3e0af37d134fab6239472e052752cbfc753af30c Mon Sep 17 00:00:00 2001 From: Sergey Konovalov Date: Sun, 15 Sep 2024 13:04:35 +0300 Subject: [PATCH] [bug] Allow to restrict 'mode' rights while token validation; For bug 68198 --- DocService/sources/DocsCoServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DocService/sources/DocsCoServer.js b/DocService/sources/DocsCoServer.js index fc37a70b..d8937aba 100644 --- a/DocService/sources/DocsCoServer.js +++ b/DocService/sources/DocsCoServer.js @@ -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;