diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-23 17:05:35 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-23 17:05:35 +0200 |
commit | 536a1908464598f50c4f7bc1d75f97a4830d410f (patch) | |
tree | 4054a4d0f63a0c7220ee279fa8e6c363ed369970 /apps | |
parent | 6850d0c6d72e2bb1837e2ee76a4da3e2b8e6509f (diff) | |
parent | d24c0f4d42f679e9014e419d8d2bd5fe88ab7e42 (diff) | |
download | nextcloud-server-536a1908464598f50c4f7bc1d75f97a4830d410f.tar.gz nextcloud-server-536a1908464598f50c4f7bc1d75f97a4830d410f.zip |
Merge pull request #9124 from owncloud/move-permissions
Fix moving files into read only public shares
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/webdav.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index c532c5eaa7d..8536c65ace9 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -209,8 +209,14 @@ class DAV extends \OC\Files\Storage\Common { $ext = ''; } if ($this->file_exists($path)) { + if (!$this->isUpdatable($path)) { + return false; + } $tmpFile = $this->getCachedFile($path); } else { + if (!$this->isCreatable(dirname($path))) { + return false; + } $tmpFile = \OCP\Files::tmpFile($ext); } \OC\Files\Stream\Close::registerCallback($tmpFile, array($this, 'writeBack')); |