]> 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 11:22:50 +0000 (12:22 +0100)
commitb920f888ae6efab4febfd5138684e91621ea8dd8
tree28932ed898e9dd2940bc078bd35eec6fa773b1fb
parentc864f5e20c5ecd1bca55c6ac26c7a5d0721e85e9
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