Commit 5d840a54 authored by Alexey Golubev's avatar Alexey Golubev Committed by GitHub

Merge pull request #205 from ONLYOFFICE/feature/ios-serialize

Feature/ios serialize
parents 8ab8ef02 afd71b2c
#!/bin/bash #!/bin/bash
PRODUCT_VERSION="5.0.2" PRODUCT_VERSION="5.0.3"
BUILD_NUMBER="12" BUILD_NUMBER="12"
echo "----------------------------------------" echo "----------------------------------------"
......
...@@ -4113,6 +4113,11 @@ function OfflineEditor () { ...@@ -4113,6 +4113,11 @@ function OfflineEditor () {
docInfo.put_UserInfo(userInfo); docInfo.put_UserInfo(userInfo);
docInfo.put_Token(this.initSettings["token"]); docInfo.put_Token(this.initSettings["token"]);
var permissions = this.initSettings["permissions"];
if (undefined != permissions && null != permissions && permissions.length > 0) {
docInfo.put_Permissions(JSON.parse(permissions));
}
_api.asc_setDocInfo(docInfo); _api.asc_setDocInfo(docInfo);
this.offline_beforeInit(); this.offline_beforeInit();
......
...@@ -5859,7 +5859,12 @@ function NativeOpenFile3(_params, documentInfo) ...@@ -5859,7 +5859,12 @@ function NativeOpenFile3(_params, documentInfo)
docInfo.put_Format("docx"); docInfo.put_Format("docx");
docInfo.put_UserInfo(userInfo); docInfo.put_UserInfo(userInfo);
docInfo.put_Token(window.documentInfo["token"]); docInfo.put_Token(window.documentInfo["token"]);
var permissions = window.documentInfo["permissions"];
if (undefined != permissions && null != permissions && permissions.length > 0) {
docInfo.put_Permissions(permissions);
}
_api.asc_setDocInfo(docInfo); _api.asc_setDocInfo(docInfo);
_api.asc_registerCallback("asc_onAdvancedOptions", function(options) { _api.asc_registerCallback("asc_onAdvancedOptions", function(options) {
......
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