From 064fc09574476e9e5538bf570dc31e653f85f5b7 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 3 Oct 2022 23:36:58 +0300 Subject: [PATCH] [DE] Fix protection --- apps/documenteditor/main/app/controller/DocProtection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/DocProtection.js b/apps/documenteditor/main/app/controller/DocProtection.js index 069e6a2da..6c8fe6c2b 100644 --- a/apps/documenteditor/main/app/controller/DocProtection.js +++ b/apps/documenteditor/main/app/controller/DocProtection.js @@ -146,7 +146,7 @@ define([ btn = result; if (result == 'ok') { if (me.api) { - me.api.asc_setProtectedDocument(Asc.c_oAscEDocProtect.None, value && value.drmOptions ? value.drmOptions.asc_getPassword() : undefined); + me.api.asc_setDocumentProtection(Asc.c_oAscEDocProtect.None, value && value.drmOptions ? value.drmOptions.asc_getPassword() : undefined); } Common.NotificationCenter.trigger('edit:complete'); } @@ -158,7 +158,7 @@ define([ win.show(); } else { - me.api.asc_setProtectedDocument(Asc.c_oAscEDocProtect.None); + me.api.asc_setDocumentProtection(Asc.c_oAscEDocProtect.None); } } },