mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
ruby: add changes after pr #501
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user