From 09f6ba00b23f6917b5a4502692857d6d04fb4305 Mon Sep 17 00:00:00 2001 From: Taygunova Rina Date: Mon, 18 Dec 2023 10:09:54 +0300 Subject: [PATCH] ruby: add changes after pr #501 --- .../ruby/app/views/home/editor.html.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/documentserver-example/ruby/app/views/home/editor.html.erb b/web/documentserver-example/ruby/app/views/home/editor.html.erb index a5bb75b0..dca9f155 100755 --- a/web/documentserver-example/ruby/app/views/home/editor.html.erb +++ b/web/documentserver-example/ruby/app/views/home/editor.html.erb @@ -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) {