[Embedded] Customization for header logo and url.

This commit is contained in:
Julia Radzhabova 2017-06-16 10:52:31 +03:00
parent fb8b479e60
commit e4ec08a696
3 changed files with 3 additions and 3 deletions

View file

@ -313,7 +313,7 @@ var ApplicationController = new(function(){
} }
function onEditorPermissions(params) { function onEditorPermissions(params) {
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') && if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
config.customization && config.customization.logo ) { config.customization && config.customization.logo ) {
var logo = $('#header-logo'); var logo = $('#header-logo');

View file

@ -391,7 +391,7 @@ var ApplicationController = new(function(){
} }
function onEditorPermissions(params) { function onEditorPermissions(params) {
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') && if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
config.customization && config.customization.logo ) { config.customization && config.customization.logo ) {
var logo = $('#header-logo'); var logo = $('#header-logo');

View file

@ -292,7 +292,7 @@ var ApplicationController = new(function(){
} }
function onEditorPermissions(params) { function onEditorPermissions(params) {
if ( params.asc_getCanBranding() && (typeof config.customization == 'object') && if ( (params.asc_getLicenseType() === Asc.c_oLicenseResult.Success) && (typeof config.customization == 'object') &&
config.customization && config.customization.logo ) { config.customization && config.customization.logo ) {
var logo = $('#header-logo'); var logo = $('#header-logo');