diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-02-11 13:28:37 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-02-11 13:28:37 +0100 |
commit | 3e3cee98c87e90ece7a4a908b6cbbc7cbc94aac7 (patch) | |
tree | 103b285eb9cda9e849dbf4dbe31a7ddbabc5a35f /apps/files_encryption/appinfo | |
parent | 2787aafae6577dfad1f3db0dc70a8e0b05eaba53 (diff) | |
download | nextcloud-server-3e3cee98c87e90ece7a4a908b6cbbc7cbc94aac7.tar.gz nextcloud-server-3e3cee98c87e90ece7a4a908b6cbbc7cbc94aac7.zip |
- moved the enrcyption of the filekey ifg file gets shared from the post shared hook to
Crypt::encKeyfileToMultipleUsers() because this can be reused if files get unshared
- switch from preUnshare hook to postUnshare hook because afterward we can simply get the
updated list of users with access to the file and call Crypt::encKeyfileToMultipleUsers()
Diffstat (limited to 'apps/files_encryption/appinfo')
-rw-r--r-- | apps/files_encryption/appinfo/app.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/appinfo/app.php b/apps/files_encryption/appinfo/app.php index f83109a18ea..6778e1faa3c 100644 --- a/apps/files_encryption/appinfo/app.php +++ b/apps/files_encryption/appinfo/app.php @@ -16,8 +16,8 @@ OCP\Util::connectHook( 'OC_User', 'pre_setPassword','OCA\Encryption\Hooks', 'set // Sharing-related hooks OCP\Util::connectHook( 'OCP\Share', 'post_shared', 'OCA\Encryption\Hooks', 'postShared' ); -OCP\Util::connectHook( 'OCP\Share', 'pre_unshare', 'OCA\Encryption\Hooks', 'preUnshare' ); -OCP\Util::connectHook( 'OCP\Share', 'pre_unshareAll', 'OCA\Encryption\Hooks', 'preUnshareAll' ); +OCP\Util::connectHook( 'OCP\Share', 'post_unshare', 'OCA\Encryption\Hooks', 'postUnshare' ); +OCP\Util::connectHook( 'OCP\Share', 'post_unshareAll', 'OCA\Encryption\Hooks', 'postUnshareAll' ); // Webdav-related hooks OCP\Util::connectHook( 'OC_Webdav_Properties', 'update', 'OCA\Encryption\Hooks', 'updateKeyfile' ); |