nodejs: onRequestRefreshFile not for anonymous

This commit is contained in:
Sergey Linnik
2024-12-09 12:06:14 +03:00
parent 05adfca5e0
commit 6051bbeb6d
2 changed files with 2 additions and 1 deletions

View File

@ -102,6 +102,7 @@ const descrUser0 = [
'Can\'t protect file',
'View file without collaboration',
'Cant submit forms',
'Cant refresh outdated file',
];
const users = [

View File

@ -384,7 +384,6 @@
"onRequestSelectDocument": onRequestSelectDocument,
"onRequestSelectSpreadsheet": onRequestSelectSpreadsheet,
"onRequestOpen": onRequestOpen,
"onRequestRefreshFile": onRequestRefreshFile,
};
if (<%- JSON.stringify(editor.userid) %> != null) {
@ -398,6 +397,7 @@
config.events.onRequestSendNotify = onRequestSendNotify;
config.events.onRequestReferenceData = onRequestReferenceData;
config.events.onRequestReferenceSource = onRequestReferenceSource;
config.events.onRequestRefreshFile = onRequestRefreshFile;
if (<%- JSON.stringify(editor.userid) %> != "uid-3") {
config.events.onRequestHistoryClose = onRequestHistoryClose;
config.events.onRequestRestore = onRequestRestore;