delete file keys from the correct location
This commit is contained in:
parent
abc2ee2e07
commit
3043dbfb95
|
@ -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…
Reference in New Issue