diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-01-28 10:19:05 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-01-28 10:19:05 -0800 |
commit | a1454ef51829c3971eb5ea7885aad6308db8e2cc (patch) | |
tree | 52165f39e9649a6a4c9fd22b5a941c72df2d9d68 | |
parent | d5df8870b6c300c93f487e502cf6143f463f33fb (diff) | |
parent | 324922818d703b15e1be5609cd1f641d6986e752 (diff) | |
download | nextcloud-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.php | 3 |
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; } |