delete file keys from the correct location

This commit is contained in:
Björn Schießle 2013-06-25 16:03:03 +02:00
parent abc2ee2e07
commit 3043dbfb95
1 changed files with 8 additions and 1 deletions

View File

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