diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 08:21:45 -0700 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 08:21:45 -0700 |
commit | c8d700c7138c3a634305097854b7f31c99702bbb (patch) | |
tree | 9b71805b306ca8be3c95667634bfd3fe5cbbe8fe /apps | |
parent | f8dae11a23784bc9ebdef67511934630e46f870b (diff) | |
parent | 18b11f76b1e1a4e77ccf5e618f5312538db93532 (diff) | |
download | nextcloud-server-c8d700c7138c3a634305097854b7f31c99702bbb.tar.gz nextcloud-server-c8d700c7138c3a634305097854b7f31c99702bbb.zip |
Merge pull request #3948 from owncloud/fixing-3934-master
no anonymous upload on files only folders
Diffstat (limited to 'apps')
-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)); |