From 10c428830e1608fb87c207ea0d6ad9a02dd6bc3e Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 27 Jan 2013 23:31:31 -0500 Subject: [PATCH] Add create permission, fixes #780 --- apps/files/index.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5