Fix User menu and link to drive in anonymous shared folders

This commit is contained in:
yflory
2018-10-01 18:24:08 +02:00
parent d78a00b5e1
commit 9a6e6f6e15
3 changed files with 11 additions and 10 deletions

View File

@@ -385,15 +385,11 @@ define([
e.stopPropagation();
});
// TOOLBAR
/* add a "change username" button */
if (!APP.readOnly) {
APP.$displayName.text(user.name || Messages.anonymous);
} else {
APP.$displayName.html('<span class="' + Toolbar.constants.readonly + '">' + Messages.readonly + '</span>');
}
// FILE MANAGER
@@ -3559,7 +3555,7 @@ define([
displayed: ['useradmin', 'pageTitle', 'newpad', 'limit'],
pageTitle: pageTitle,
metadataMgr: metadataMgr,
readOnly: readOnly,
readOnly: privateData.readOnly,
sfCommon: common,
$container: APP.$bar
};