diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-27 23:31:31 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-01-27 23:31:31 -0500 |
commit | 10c428830e1608fb87c207ea0d6ad9a02dd6bc3e (patch) | |
tree | 147057b8ba4d405db6ae8474735150475269a0f6 | |
parent | b6554447090cc5a725508f5c4080ce375de29ee7 (diff) | |
download | nextcloud-server-10c428830e1608fb87c207ea0d6ad9a02dd6bc3e.tar.gz nextcloud-server-10c428830e1608fb87c207ea0d6ad9a02dd6bc3e.zip |
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 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; } |