From 13991be5ce6e318670b84458c2cdaa6878ad63cc Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Fri, 5 Jul 2013 10:53:59 +0200 Subject: no anonymous upload on files only folders --- apps/files_sharing/public.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/files_sharing/public.php') diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index fb18bc26248..96fe12fc86a 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)); -- cgit v1.2.3