diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2015-04-30 10:44:44 -0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-04 09:40:59 +0200 |
commit | 3ef2e668ac9274d72ea4afb73b708d7b2c88f0d7 (patch) | |
tree | d2dc2f1047cf837cfbdf817f69ca26aef43a38cb /settings/controller | |
parent | 870ac88c85ffe20db9708b5a4c69fbe18102f0d6 (diff) | |
download | nextcloud-server-3ef2e668ac9274d72ea4afb73b708d7b2c88f0d7.tar.gz nextcloud-server-3ef2e668ac9274d72ea4afb73b708d7b2c88f0d7.zip |
fixing recovery tooltip
Diffstat (limited to 'settings/controller')
-rw-r--r-- | settings/controller/userscontroller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php index 46782a0cace..588142257ef 100644 --- a/settings/controller/userscontroller.php +++ b/settings/controller/userscontroller.php @@ -122,10 +122,10 @@ class UsersController extends Controller { $this->subAdminFactory = $subAdminFactory; // check for encryption state - TODO see formatUserForIndex - $this->isEncryptionAppEnabled = $appManager->isEnabledForUser('files_encryption'); + $this->isEncryptionAppEnabled = $appManager->isEnabledForUser('encryption'); if($this->isEncryptionAppEnabled) { // putting this directly in empty is possible in PHP 5.5+ - $result = $config->getAppValue('files_encryption', 'recoveryAdminEnabled', 0); + $result = $config->getAppValue('encryption', 'recoveryAdminEnabled', 0); $this->isRestoreEnabled = !empty($result); } } @@ -148,7 +148,7 @@ class UsersController extends Controller { if ($this->isEncryptionAppEnabled) { if ($this->isRestoreEnabled) { // check for the users recovery setting - $recoveryMode = $this->config->getUserValue($user->getUID(), 'files_encryption', 'recovery_enabled', '0'); + $recoveryMode = $this->config->getUserValue($user->getUID(), 'encryption', 'recoveryEnabled', '0'); // method call inside empty is possible with PHP 5.5+ $recoveryModeEnabled = !empty($recoveryMode); if ($recoveryModeEnabled) { |