diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-26 15:36:50 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-26 15:36:50 -0500 |
commit | b4515d874e5259647886d148db902f9753bbeb81 (patch) | |
tree | 472ffd20db313550d313feda1c25ebcfbb163afb | |
parent | 7e36f730ecfe452681f44771b28d1d3c4a5535df (diff) | |
download | nextcloud-server-b4515d874e5259647886d148db902f9753bbeb81.tar.gz nextcloud-server-b4515d874e5259647886d148db902f9753bbeb81.zip |
Only folders have Create permission
-rw-r--r-- | lib/files/storage/common.php | 5 |
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); |