summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@pontapreta.net>2016-11-22 13:19:42 -0100
committerGitHub <noreply@github.com>2016-11-22 13:19:42 -0100
commit558a934842a9f66a873f24b8107fca1fc68fb791 (patch)
treef9edc86701a990f0298ca01eea58991b04e1d529 /apps/encryption/lib
parentb5fab4ed9cc23b0408057f9e8b0cb90b2e50fa73 (diff)
downloadnextcloud-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/lib')
-rw-r--r--apps/encryption/lib/KeyManager.php3
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();
}