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); } } },