ruby: add changes after pr #501

This commit is contained in:
Taygunova Rina
2023-12-18 10:09:54 +03:00
parent 43f1555c68
commit 09f6ba00b2

View File

@ -303,10 +303,12 @@
// prevent switch the document from the viewing into the editing mode for anonymous users
config.events['onRequestEditRights'] = onRequestEditRights;
config.events['onRequestOpen'] = onRequestOpen;
config.events['onRequestRestore'] = onRequestRestore;
config.events['onRequestHistory'] = onRequestHistory;
config.events['onRequestHistoryData'] = onRequestHistoryData;
config.events['onRequestHistoryClose'] = onRequestHistoryClose;
if (config.editorConfig.user.id != "uid-3") {
config.events['onRequestHistoryClose'] = onRequestHistoryClose;
config.events['onRequestRestore'] = onRequestRestore;
}
}
if (config.editorConfig.createUrl) {