]> source.dussan.org Git - nextcloud-server.git/commit
Fix moving share keys as non-owner to subdir
authorVincent Petry <pvince81@owncloud.com>
Wed, 29 Oct 2014 11:22:50 +0000 (12:22 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 29 Oct 2014 15:11:06 +0000 (16:11 +0100)
commit0d02aa791087e521b5c55d49f11f05154373504d
treef3a73f3740390d6a505b1d1a876966c8c4230617
parent77a533a29d2a43fda0788e65c79ef3a2412a080b
Fix moving share keys as non-owner to subdir

This fix gathers the share keys BEFORE a file is moved to make sure that
findShareKeys() is able to find all relevant keys when the file still
exists.

After the move/copy operation the keys are moved/copied to the target
dir.

Also: refactored preRename and preCopy into a single function to avoid
duplicate code.
apps/files_encryption/hooks/hooks.php