diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 10:53:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-05 10:53:59 +0200 |
commit | 13991be5ce6e318670b84458c2cdaa6878ad63cc (patch) | |
tree | b2600df6c6019cb50f8734f50f582a80760f8287 /apps/files_sharing/public.php | |
parent | 955646c4618110cd80c51f283b74848c9a013c41 (diff) | |
download | nextcloud-server-13991be5ce6e318670b84458c2cdaa6878ad63cc.tar.gz nextcloud-server-13991be5ce6e318670b84458c2cdaa6878ad63cc.zip |
no anonymous upload on files only folders
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |