summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/util.php')
-rw-r--r--apps/encryption/lib/util.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/encryption/lib/util.php b/apps/encryption/lib/util.php
index 04e04028caf..51d5241122f 100644
--- a/apps/encryption/lib/util.php
+++ b/apps/encryption/lib/util.php
@@ -77,10 +77,13 @@ class Util {
}
/**
+ * check if recovery key is enabled for user
+ *
+ * @param string $uid
* @return bool
*/
- public function isRecoveryEnabledForUser() {
- $recoveryMode = $this->config->getUserValue($this->user->getUID(),
+ public function isRecoveryEnabledForUser($uid) {
+ $recoveryMode = $this->config->getUserValue($uid,
'encryption',
'recoveryEnabled',
0);