summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-01-27 23:52:09 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-01-27 23:52:09 -0800
commit44d6ff61e254635f055a1c92f12c653e5b1a1e7b (patch)
tree147057b8ba4d405db6ae8474735150475269a0f6 /apps/files
parentb6554447090cc5a725508f5c4080ce375de29ee7 (diff)
parent10c428830e1608fb87c207ea0d6ad9a02dd6bc3e (diff)
downloadnextcloud-server-44d6ff61e254635f055a1c92f12c653e5b1a1e7b.tar.gz
nextcloud-server-44d6ff61e254635f055a1c92f12c653e5b1a1e7b.zip
Merge pull request #1337 from owncloud/fix-issue-780
Add create permission, fixes #780
Diffstat (limited to 'apps/files')
-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 2c6b689b0c9..9ee5cae6c85 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -83,6 +83,9 @@ $breadcrumbNav->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$permissions = OCP\PERMISSION_READ;
+if (OC_Filesystem::isCreatable($dir . '/')) {
+ $permissions |= OCP\PERMISSION_CREATE;
+}
if (OC_Filesystem::isUpdatable($dir . '/')) {
$permissions |= OCP\PERMISSION_UPDATE;
}