aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-26 15:36:50 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-26 15:36:50 -0500
commitb4515d874e5259647886d148db902f9753bbeb81 (patch)
tree472ffd20db313550d313feda1c25ebcfbb163afb
parent7e36f730ecfe452681f44771b28d1d3c4a5535df (diff)
downloadnextcloud-server-b4515d874e5259647886d148db902f9753bbeb81.tar.gz
nextcloud-server-b4515d874e5259647886d148db902f9753bbeb81.zip
Only folders have Create permission
-rw-r--r--lib/files/storage/common.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php
index c891d0c3ad0..3cf960d05df 100644
--- a/lib/files/storage/common.php
+++ b/lib/files/storage/common.php
@@ -38,7 +38,10 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
}
public function isCreatable($path) {
- return $this->isUpdatable($path);
+ if ($this->is_dir($path) && $this->isUpdatable($path)) {
+ return true;
+ }
+ return false;
}
public function isDeletable($path) {
return $this->isUpdatable($path);