summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/helper.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 15:09:43 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:55:59 +0200
commit329bfd81c33ed95fdc91658cd914611605cd114f (patch)
tree1c599dfa9d77a747f2ba94b811ab8a5daa68a9ed /apps/files_encryption/lib/helper.php
parent1b0b977678b703a994e088eb7c23bdcddb24f6ce (diff)
downloadnextcloud-server-329bfd81c33ed95fdc91658cd914611605cd114f.tar.gz
nextcloud-server-329bfd81c33ed95fdc91658cd914611605cd114f.zip
remove encryption keys if user unshares a file
Diffstat (limited to 'apps/files_encryption/lib/helper.php')
-rwxr-xr-xapps/files_encryption/lib/helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_encryption/lib/helper.php b/apps/files_encryption/lib/helper.php
index 564e97e0592..2684bf7be33 100755
--- a/apps/files_encryption/lib/helper.php
+++ b/apps/files_encryption/lib/helper.php
@@ -65,6 +65,8 @@ class Helper {
\OCP\Util::connectHook('OC_Filesystem', 'post_rename', 'OCA\Encryption\Hooks', 'postRename');
\OCP\Util::connectHook('OC_Filesystem', 'post_delete', 'OCA\Encryption\Hooks', 'postDelete');
\OCP\Util::connectHook('OC_Filesystem', 'delete', 'OCA\Encryption\Hooks', 'preDelete');
+ \OCP\Util::connectHook('OC_Filesystem', 'post_umount', 'OCA\Encryption\Hooks', 'postUmount');
+ \OCP\Util::connectHook('OC_Filesystem', 'umount', 'OCA\Encryption\Hooks', 'preUmount');
}
/**