From 13991be5ce6e318670b84458c2cdaa6878ad63cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Fri, 5 Jul 2013 10:53:59 +0200 Subject: [PATCH] no anonymous upload on files only folders --- apps/files_sharing/public.php | 3 +++ core/js/share.js | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index fb18bc2624..96fe12fc86 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -151,6 +151,9 @@ if (isset($path)) { if (\OCP\App::isEnabled('files_encryption')) { $allowPublicUploadEnabled = false; } + if (isset($file)) { + $allowPublicUploadEnabled = false; + } $tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled); $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); diff --git a/core/js/share.js b/core/js/share.js index 588202d227..778a9f8e20 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -181,11 +181,13 @@ OC.Share={ html += '
'; html += ''; html += '
'; - html += ''; - html += '';