summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-28 19:37:58 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-28 19:37:58 +0100
commit74f6f856289b62c69a1e12e9fc38cf6fd7b29680 (patch)
tree255d0437dd79840b9291e0d8874bd5b031fc89a3 /apps/files/index.php
parent232cc3211b2b312d4e32e7d0fb482a2b7affe89a (diff)
parent06c1c35ac90f7920afa637ab0b628529b4135d40 (diff)
downloadnextcloud-server-74f6f856289b62c69a1e12e9fc38cf6fd7b29680.tar.gz
nextcloud-server-74f6f856289b62c69a1e12e9fc38cf6fd7b29680.zip
merge master into filesystem
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 13eebfc6990..894758d38f6 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -93,6 +93,7 @@ $list = new OCP\Template('files', 'part.list', '');
$list->assign('files', $files, false);
$list->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir=', false);
$list->assign('downloadURL', OCP\Util::linkTo('files', 'download.php') . '?file=', false);
+$list->assign('disableSharing', false);
$breadcrumbNav = new OCP\Template('files', 'part.breadcrumb', '');
$breadcrumbNav->assign('breadcrumb', $breadcrumb, false);
$breadcrumbNav->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir=', false);
@@ -100,6 +101,9 @@ $breadcrumbNav->assign('baseURL', OCP\Util::linkTo('files', 'index.php') . '?dir
$maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
$permissions = OCP\PERMISSION_READ;
+if (\OC\Files\Filesystem::isCreatable($dir . '/')) {
+ $permissions |= OCP\PERMISSION_CREATE;
+}
if (\OC\Files\Filesystem::isUpdatable($dir . '/')) {
$permissions |= OCP\PERMISSION_UPDATE;
}