summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-28 08:57:38 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-28 08:57:38 +0100
commit324922818d703b15e1be5609cd1f641d6986e752 (patch)
tree52165f39e9649a6a4c9fd22b5a941c72df2d9d68
parentd5df8870b6c300c93f487e502cf6143f463f33fb (diff)
downloadnextcloud-server-324922818d703b15e1be5609cd1f641d6986e752.tar.gz
nextcloud-server-324922818d703b15e1be5609cd1f641d6986e752.zip
Add create permission, fixes #780
-rw-r--r--apps/files/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 1e28a43072a..71c5d7257c9 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -90,6 +90,9 @@ $freeSpace=max($freeSpace,0);
$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
$permissions = OCP\Share::PERMISSION_READ;
+if (OC_Filesystem::isCreatable($dir . '/')) {
+ $permissions |= OCP\Share::PERMISSION_CREATE;
+}
if (OC_Filesystem::isUpdatable($dir.'/')) {
$permissions |= OCP\Share::PERMISSION_UPDATE;
}