diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 1377d8578..3648abad2 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -319,6 +319,9 @@ define(function () { // OnlyOffice out.oo_saveError = "Une erreur s'est produite lors de la sauvegarde de vos modifications. Merci de réessayer dans quelques instants."; out.oo_newVersion = "Une nouvelle version du document est disponible. Cliquez sur OK pour l'ouvrir."; + out.oo_locked = "Ce document est actuellement verrouillé. "; + out.oo_locked_unregistered = "Seuls les utilisateurs enregistrés peuvent le modifier."; + out.oo_locked_edited = "Un seul utilisateur à la fois peut modifier le document."; // Profile out.profileButton = "Profil"; // dropdown menu diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 692fdc6c6..48476d2aa 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -307,6 +307,9 @@ define(function () { // OnlyOffice out.oo_saveError = "We were unable to save your modifications, please try again in a few moments."; out.oo_newVersion = "A new version of this document is available, click OK to load it."; + out.oo_locked = "This document is currently locked. "; + out.oo_locked_unregistered = "Only registered users can edit."; + out.oo_locked_edited = "Only one person can edit at a time."; // Canvas out.canvas_clear = "Clear"; diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 17728ef7b..cb99df968 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -80,7 +80,8 @@ define([ var startOO = function (blob, file) { if (APP.ooconfig) { return void console.error('already started'); } var url = URL.createObjectURL(blob); - var lock = locked !== common.getMetadataMgr().getNetfluxId(); + var lock = locked !== common.getMetadataMgr().getNetfluxId() || + !common.isLoggedIn(); // Config APP.ooconfig = { @@ -122,12 +123,11 @@ define([ '#fm-btn-save { display: none !important; }' + '#header { display: none !important; }'; $('