Commit cdd06b2e authored by Alexey.Musinov's avatar Alexey.Musinov

set permission data

parent 1f58dd17
......@@ -4112,6 +4112,7 @@ function OfflineEditor () {
docInfo.put_Format("xlsx");
docInfo.put_UserInfo(userInfo);
docInfo.put_Token(this.initSettings["token"]);
docInfo.put_Permissions(JSON.parse(this.initSettings["permissions"]));
_api.asc_setDocInfo(docInfo);
......
......@@ -5859,6 +5859,7 @@ function NativeOpenFile3(_params, documentInfo)
docInfo.put_Format("docx");
docInfo.put_UserInfo(userInfo);
docInfo.put_Token(window.documentInfo["token"]);
docInfo.put_Permissions(JSON.parse(window.documentInfo["permissions"]));
_api.asc_setDocInfo(docInfo);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment