only show decrypt all files option if encrypted files are available

remotes/origin/stable6
Bjoern Schiessle 13 years ago
parent 3640c99462
commit c7eba69aea
  1. 3
      settings/personal.php

@ -28,8 +28,7 @@ $languageCodes=OC_L10N::findAvailableLanguages();
$enableDecryptAll = false;
if (OC_App::isEnabled('files_encryption') === false) {
$view = new OC\Files\View('/'.OCP\User::getUser());
$remainingKeys = $view->getDirectoryContent('/files_encryption/keyfiles');
if (!empty($remainingKeys)) {
if($view->file_exists('/files_encryption/keyfiles')) {
$enableDecryptAll = true;
}
}

Loading…
Cancel
Save