Use the user object in file manager if it exists

This commit is contained in:
yflory
2016-12-20 11:30:04 +01:00
parent 6778a7062d
commit c7e63f63fd
2 changed files with 5 additions and 3 deletions

View File

@@ -1444,7 +1444,7 @@ define([
APP.homePageIframe = true;
}
var hash = window.location.hash.slice(1) || localStorage.FS_hash;
var hash = Cryptpad.getUserHash() || window.location.hash.slice(1) || localStorage.FS_hash;
var secret = Cryptpad.getSecrets(hash);
var readOnly = APP.readOnly = secret.keys && !secret.keys.editKeyStr;