summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-01-28 10:19:05 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-01-28 10:19:05 -0800
commita1454ef51829c3971eb5ea7885aad6308db8e2cc (patch)
tree52165f39e9649a6a4c9fd22b5a941c72df2d9d68
parentd5df8870b6c300c93f487e502cf6143f463f33fb (diff)
parent324922818d703b15e1be5609cd1f641d6986e752 (diff)
downloadnextcloud-server-a1454ef51829c3971eb5ea7885aad6308db8e2cc.tar.gz
nextcloud-server-a1454ef51829c3971eb5ea7885aad6308db8e2cc.zip
Merge pull request #1338 from owncloud/backport-1337-stable45
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;
}