diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-05-11 10:35:42 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-05-11 12:06:57 +0200 |
commit | 0d5c7a11e287f44ad556d29b952c57c9ec11dfaa (patch) | |
tree | 40f6ac27a0253b13e392fae44dce5843fa13fe4b /lib/base.php | |
parent | ebf3953908a8dfdb754a5031d69326c6b83cf609 (diff) | |
download | nextcloud-server-0d5c7a11e287f44ad556d29b952c57c9ec11dfaa.tar.gz nextcloud-server-0d5c7a11e287f44ad556d29b952c57c9ec11dfaa.zip |
use hooks to update encryption keys instead of the storage wrapper if a file gets renamed/restored, as long as we
are in the storage wrapper the file cache isn't up-to-date
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index a9d582dcc39..d1ff9fe799b 100644 --- a/lib/base.php +++ b/lib/base.php @@ -727,6 +727,8 @@ class OC { if ($enabled) { \OCP\Util::connectHook('OCP\Share', 'post_shared', 'OC\Encryption\HookManager', 'postShared'); \OCP\Util::connectHook('OCP\Share', 'post_unshare', 'OC\Encryption\HookManager', 'postUnshared'); + \OCP\Util::connectHook('OC_Filesystem', 'post_rename', 'OC\Encryption\HookManager', 'postRename'); + \OCP\Util::connectHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', 'OC\Encryption\HookManager', 'postRestore'); } } |