For Bug 36122.
This commit is contained in:
parent
cacb5e4d4a
commit
0f6213f9db
|
@ -91,14 +91,15 @@ var ApplicationController = new(function(){
|
|||
if (docConfig) {
|
||||
permissions = $.extend(permissions, docConfig.permissions);
|
||||
|
||||
var docInfo = new Asc.asc_CDocInfo();
|
||||
var _permissions = $.extend({}, docConfig.permissions),
|
||||
docInfo = new Asc.asc_CDocInfo();
|
||||
docInfo.put_Id(docConfig.key);
|
||||
docInfo.put_Url(docConfig.url);
|
||||
docInfo.put_Title(docConfig.title);
|
||||
docInfo.put_Format(docConfig.fileType);
|
||||
docInfo.put_VKey(docConfig.vkey);
|
||||
docInfo.put_Token(docConfig.token);
|
||||
docInfo.put_Permissions(permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
|
||||
if (api) {
|
||||
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
|
||||
|
|
|
@ -299,7 +299,8 @@ define([
|
|||
if (data.doc) {
|
||||
this.permissions = $.extend(this.permissions, data.doc.permissions);
|
||||
|
||||
var _user = new Asc.asc_CUserInfo();
|
||||
var _permissions = $.extend({}, data.doc.permissions),
|
||||
_user = new Asc.asc_CUserInfo();
|
||||
_user.put_Id(this.appOptions.user.id);
|
||||
_user.put_FullName(this.appOptions.user.fullname);
|
||||
|
||||
|
@ -313,7 +314,7 @@ define([
|
|||
docInfo.put_UserInfo(_user);
|
||||
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
|
||||
docInfo.put_Token(data.doc.token);
|
||||
docInfo.put_Permissions(this.permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
//docInfo.put_OfflineApp(this.editorConfig.nativeApp === true);
|
||||
}
|
||||
|
||||
|
|
|
@ -217,7 +217,8 @@ define([
|
|||
if (data.doc) {
|
||||
this.permissions = $.extend(this.permissions, data.doc.permissions);
|
||||
|
||||
var _user = new Asc.asc_CUserInfo();
|
||||
var _permissions = $.extend({}, data.doc.permissions),
|
||||
_user = new Asc.asc_CUserInfo();
|
||||
_user.put_Id(this.appOptions.user.id);
|
||||
_user.put_FullName(this.appOptions.user.fullname);
|
||||
|
||||
|
@ -231,7 +232,7 @@ define([
|
|||
docInfo.put_UserInfo(_user);
|
||||
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
|
||||
docInfo.put_Token(data.doc.token);
|
||||
docInfo.put_Permissions(this.permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
}
|
||||
|
||||
this.api.asc_registerCallback('asc_onGetEditorPermissions', _.bind(this.onEditorPermissions, this));
|
||||
|
|
|
@ -89,14 +89,15 @@ var ApplicationController = new(function(){
|
|||
if (docConfig) {
|
||||
permissions = $.extend(permissions, docConfig.permissions);
|
||||
|
||||
var docInfo = new Asc.asc_CDocInfo();
|
||||
var _permissions = $.extend({}, docConfig.permissions),
|
||||
docInfo = new Asc.asc_CDocInfo();
|
||||
docInfo.put_Id(docConfig.key);
|
||||
docInfo.put_Url(docConfig.url);
|
||||
docInfo.put_Title(docConfig.title);
|
||||
docInfo.put_Format(docConfig.fileType);
|
||||
docInfo.put_VKey(docConfig.vkey);
|
||||
docInfo.put_Token(docConfig.token);
|
||||
docInfo.put_Permissions(permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
|
||||
if (api) {
|
||||
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
|
||||
|
|
|
@ -334,7 +334,8 @@ define([
|
|||
if (data.doc) {
|
||||
this.permissions = _.extend(this.permissions, data.doc.permissions);
|
||||
|
||||
var _user = new Asc.asc_CUserInfo();
|
||||
var _permissions = $.extend({}, data.doc.permissions),
|
||||
_user = new Asc.asc_CUserInfo();
|
||||
_user.put_Id(this.appOptions.user.id);
|
||||
_user.put_FullName(this.appOptions.user.fullname);
|
||||
|
||||
|
@ -348,7 +349,7 @@ define([
|
|||
docInfo.put_UserInfo(_user);
|
||||
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
|
||||
docInfo.put_Token(data.doc.token);
|
||||
docInfo.put_Permissions(this.permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
|
||||
this.headerView.setDocumentCaption(data.doc.title);
|
||||
}
|
||||
|
|
|
@ -220,7 +220,8 @@ define([
|
|||
if ( data.doc ) {
|
||||
this.permissions = $.extend(this.permissions, data.doc.permissions);
|
||||
|
||||
var _user = new Asc.asc_CUserInfo();
|
||||
var _permissions = $.extend({}, data.doc.permissions),
|
||||
_user = new Asc.asc_CUserInfo();
|
||||
_user.put_Id(this.appOptions.user.id);
|
||||
_user.put_FullName(this.appOptions.user.fullname);
|
||||
|
||||
|
@ -234,7 +235,7 @@ define([
|
|||
docInfo.put_UserInfo(_user);
|
||||
docInfo.put_CallbackUrl(this.editorConfig.callbackUrl);
|
||||
docInfo.put_Token(data.doc.token);
|
||||
docInfo.put_Permissions(this.permissions);
|
||||
docInfo.put_Permissions(_permissions);
|
||||
}
|
||||
|
||||
this.api.asc_registerCallback('asc_onGetEditorPermissions', _.bind(this.onEditorPermissions, this));
|
||||
|
|
Loading…
Reference in a new issue