diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-28 19:37:58 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-28 19:37:58 +0100 |
commit | 74f6f856289b62c69a1e12e9fc38cf6fd7b29680 (patch) | |
tree | 255d0437dd79840b9291e0d8874bd5b031fc89a3 /apps/files/index.php | |
parent | 232cc3211b2b312d4e32e7d0fb482a2b7affe89a (diff) | |
parent | 06c1c35ac90f7920afa637ab0b628529b4135d40 (diff) | |
download | nextcloud-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.php | 4 |
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; } |