diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-29 17:06:05 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-29 17:06:05 +0200 |
commit | b6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd (patch) | |
tree | 2ca892180568bd5c76facbfd9e6762621485a5dd /settings/personal.php | |
parent | 830f5d24c77b863bd49eda0cbc4ba812add8065d (diff) | |
download | nextcloud-server-b6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd.tar.gz nextcloud-server-b6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd.zip |
working decrypt files method
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/personal.php b/settings/personal.php index 79ce8e4576b..f10b0afb096 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -27,8 +27,9 @@ $languageCodes=OC_L10N::findAvailableLanguages(); //check if encryption was enabled in the past $enableDecryptAll = false; if (OC_App::isEnabled('files_encryption') === false) { - $view = new OC\Files\View('/'.OC_User::getUser()); - if ($view->file_exists('files_encryption/keyfiles')) { + $view = new OC\Files\View('/'.OCP\User::getUser()); + $remainingKeys = $view->getDirectoryContent('/files_encryption/keyfiles'); + if (!empty($remainingKeys)) { $enableDecryptAll = true; } } |