diff --git a/common/Local/license.js b/common/Local/license.js index b03f607f4b33681d985046cc67918630ae637999..786b0f79fe9b0c440251e0e6d26ee1000eeef370 100644 --- a/common/Local/license.js +++ b/common/Local/license.js @@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function() { var oResult = new AscCommon.asc_CAscEditorPermissions(); oResult.setLicenseType(Asc.c_oLicenseResult.Success); - oResult.setCanLicense(true); oResult.setCanBranding(true); this.sendEvent('asc_onGetEditorPermissions', oResult); } diff --git a/common/Private/license.js b/common/Private/license.js index 60696be448862d168b5942b766751370410ddef0..3b09d9b88401951a48785d3f9707191e9edab499 100644 --- a/common/Private/license.js +++ b/common/Private/license.js @@ -38,7 +38,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function () { if (null !== this.licenseResult) { var type = this.licenseResult['type']; oResult.setLicenseType(type); - oResult.setCanLicense(Asc.c_oLicenseResult.Success === type); oResult.setCanBranding(Asc.c_oLicenseResult.Error !== type); // Ð”Ð»Ñ Ñ‚ÐµÑ…, у кого еÑÑ‚ÑŒ лицензиÑ, branding доÑтупен oResult.setIsLight(this.licenseResult['light']); } diff --git a/common/apiCommon.js b/common/apiCommon.js index b6a9cc2ae8da8431f37be987211550a173994b68..d1006e6dc8824f0a1e1c3d80aa07786db6293b21 100644 --- a/common/apiCommon.js +++ b/common/apiCommon.js @@ -120,7 +120,6 @@ */ function asc_CAscEditorPermissions() { this.licenseType = c_oLicenseResult.Error; - this.canLicense = false; this.isLight = false; this.canCoAuthoring = true; this.canReaderMode = true; @@ -134,9 +133,6 @@ asc_CAscEditorPermissions.prototype.asc_getLicenseType = function () { return this.licenseType; }; - asc_CAscEditorPermissions.prototype.asc_getCanLicense = function () { - return this.canLicense; - }; asc_CAscEditorPermissions.prototype.asc_getCanCoAuthoring = function () { return this.canCoAuthoring; }; @@ -162,9 +158,6 @@ asc_CAscEditorPermissions.prototype.setLicenseType = function (v) { this.licenseType = v; }; - asc_CAscEditorPermissions.prototype.setCanLicense = function (v) { - this.canLicense = v; - }; asc_CAscEditorPermissions.prototype.setCanBranding = function (v) { this.canBranding = v; }; @@ -2685,7 +2678,6 @@ window["AscCommon"].asc_CAscEditorPermissions = asc_CAscEditorPermissions; prot = asc_CAscEditorPermissions.prototype; prot["asc_getLicenseType"] = prot.asc_getLicenseType; - prot["asc_getCanLicense"] = prot.asc_getCanLicense; prot["asc_getCanCoAuthoring"] = prot.asc_getCanCoAuthoring; prot["asc_getCanReaderMode"] = prot.asc_getCanReaderMode; prot["asc_getCanBranding"] = prot.asc_getCanBranding;