diff options
author | Maxence Lange <maxence@pontapreta.net> | 2016-11-22 13:19:42 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-22 13:19:42 -0100 |
commit | 558a934842a9f66a873f24b8107fca1fc68fb791 (patch) | |
tree | f9edc86701a990f0298ca01eea58991b04e1d529 /apps/encryption | |
parent | b5fab4ed9cc23b0408057f9e8b0cb90b2e50fa73 (diff) | |
download | nextcloud-server-558a934842a9f66a873f24b8107fca1fc68fb791.tar.gz nextcloud-server-558a934842a9f66a873f24b8107fca1fc68fb791.zip |
init Session/privateKeys on Master Key
I can't find another way to init the session ...
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/lib/KeyManager.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php index 26f023ed8f9..96264d01363 100644 --- a/apps/encryption/lib/KeyManager.php +++ b/apps/encryption/lib/KeyManager.php @@ -406,6 +406,9 @@ class KeyManager { } if ($this->util->isMasterKeyEnabled()) { + if ($this->session->getStatus() === Session::NOT_INITIALIZED) + $this->init('', ''); + $uid = $this->getMasterKeyId(); } |