]> source.dussan.org Git - nextcloud-server.git/commit
Check delete permission before attemping copy+delete
authorVincent Petry <pvince81@owncloud.com>
Fri, 19 Feb 2016 11:59:10 +0000 (12:59 +0100)
committerVincent Petry <pvince81@owncloud.com>
Fri, 19 Feb 2016 11:59:10 +0000 (12:59 +0100)
commita9e0cfad8b3d90c81b53e7d4b2382e559a4cec94
treec72e5c980ba67370402587fea2fa28a917b769e8
parentae2304f23f04f1d6c84f2a049a4b0fdc0c9023c6
Check delete permission before attemping copy+delete

Some move operations when cross-storage will be replaced by copy and
delete. Before attempting this, first check whether the source storage
has delete permissions.

This also prevents renaming system-wide external storages.
lib/private/files/storage/common.php
lib/private/files/storage/wrapper/encryption.php