summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-25 14:28:35 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-17 11:35:16 +0200
commit2f22e67570bd7b3e99d0f01b59c0e1808a8b5189 (patch)
treec1b74d6d1b3b004e7a6e55e59ed766d64a9c39b9 /lib
parentd25a9a118f7824a72f193d57373355e51323f118 (diff)
downloadnextcloud-server-2f22e67570bd7b3e99d0f01b59c0e1808a8b5189.tar.gz
nextcloud-server-2f22e67570bd7b3e99d0f01b59c0e1808a8b5189.zip
Also check if the file itself is updatable
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/storage/common.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 4680971b278..483a9ac6668 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -95,11 +95,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
public function isDeletable($path) {
- if ($path === '' or $path === '/') {
+ if ($path === '' || $path === '/') {
return false;
}
$parent = dirname($path);
- return $this->isUpdatable($parent);
+ return $this->isUpdatable($parent) and $this->isUpdatable($path);
}
public function isSharable($path) {