]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing check if public share is a folder or not
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 5 Jul 2013 22:11:42 +0000 (00:11 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 5 Jul 2013 22:12:29 +0000 (00:12 +0200)
apps/files_sharing/public.php

index 0c3d6fb7b25a28ca0a0a77a1dd58660112100909..9462844a82b7be7db8a54876744fc6fd57059f2c 100644 (file)
@@ -137,7 +137,7 @@ if (isset($path)) {
                if (\OCP\App::isEnabled('files_encryption')) {
                        $allowPublicUploadEnabled = false;
                }
-               if (isset($file)) {
+               if ($linkItem['item_type'] !== 'folder') {
                        $allowPublicUploadEnabled = false;
                }
                $tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled);