[desktop] for bug 60014

This commit is contained in:
Maxim Kadushkin 2022-12-06 21:43:43 +03:00
parent f91bc6e50e
commit 9e608f168d

View file

@ -283,6 +283,15 @@ define([
}).show();
native.execCommand('webapps:features', JSON.stringify(features));
api.asc_registerCallback('asc_onDocumentName', function () {
if ( features.readonly ) {
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
features.readonly = false;
native.execCommand('webapps:features', JSON.stringify(features));
}
}
});
}
}
});