diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-27 15:09:43 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:55:59 +0200 |
commit | 329bfd81c33ed95fdc91658cd914611605cd114f (patch) | |
tree | 1c599dfa9d77a747f2ba94b811ab8a5daa68a9ed /lib/private | |
parent | 1b0b977678b703a994e088eb7c23bdcddb24f6ce (diff) | |
download | nextcloud-server-329bfd81c33ed95fdc91658cd914611605cd114f.tar.gz nextcloud-server-329bfd81c33ed95fdc91658cd914611605cd114f.zip |
remove encryption keys if user unshares a file
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/files/view.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 1515769116f..9b6a370fe3b 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -361,7 +361,18 @@ class View { $mount = Filesystem::getMountManager()->find($absolutePath . $postFix); if ($mount->getInternalPath($absolutePath) === '') { if ($mount instanceof MoveableMount) { - return $mount->removeMount(); + \OC_Hook::emit( + Filesystem::CLASSNAME, "umount", + array(Filesystem::signal_param_path => $path) + ); + $result = $mount->removeMount(); + if ($result) { + \OC_Hook::emit( + Filesystem::CLASSNAME, "post_umount", + array(Filesystem::signal_param_path => $path) + ); + } + return $result; } else { // do not allow deleting the storage's root / the mount point // because for some storages it might delete the whole contents |