delete file keys from the correct location

remotes/origin/stable6
Björn Schießle 12 years ago
parent abc2ee2e07
commit 3043dbfb95
  1. 9
      apps/files_encryption/lib/keymanager.php

@ -277,7 +277,14 @@ class Keymanager {
public static function deleteFileKey(\OC_FilesystemView $view, $userId, $path) {
$trimmed = ltrim($path, '/');
$keyPath = '/' . $userId . '/files_encryption/keyfiles/' . $trimmed;
$util = new Util($view, \OCP\User::getUser());
if($util->isSystemWideMountPoint($path)) {
$keyPath = '/files_encryption/keyfiles/' . $trimmed;
} else {
$keyPath = '/' . $userId . '/files_encryption/keyfiles/' . $trimmed;
}
$result = false;

Loading…
Cancel
Save