summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-07-29 17:06:05 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-07-29 17:06:05 +0200
commitb6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd (patch)
tree2ca892180568bd5c76facbfd9e6762621485a5dd /settings/personal.php
parent830f5d24c77b863bd49eda0cbc4ba812add8065d (diff)
downloadnextcloud-server-b6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd.tar.gz
nextcloud-server-b6fa0e4eefb332dc1fb9b45df50de4621ed8e6bd.zip
working decrypt files method
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php5
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;
}
}