summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-15 14:36:18 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-15 14:36:18 +0100
commit807b885a0e83841b51b694afbb4b377e39215b0f (patch)
treedad2aeaddaf49d23dc82d0b47e17584db7ff5cd2 /apps/files_sharing/public.php
parent072ef7f010ca9f48119bc2397a82fdd0aac76beb (diff)
downloadnextcloud-server-807b885a0e83841b51b694afbb4b377e39215b0f.tar.gz
nextcloud-server-807b885a0e83841b51b694afbb4b377e39215b0f.zip
reuse file upload as used within files app - remove public upload button
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ae0a62f1034..e3d68955439 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -225,7 +225,8 @@ if (isset($path)) {
$folder->assign('fileList', $list->fetchPage());
$folder->assign('breadcrumb', $breadcrumbNav->fetchPage());
$folder->assign('dir', $getPath);
- $folder->assign('isCreatable', false);
+ $folder->assign('isCreatable', $allowPublicUploadEnabled);
+ $folder->assign('dirToken', $linkItem['token']);
$folder->assign('permissions', OCP\PERMISSION_READ);
$folder->assign('isPublic',true);
$folder->assign('publicUploadEnabled', 'no');