summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-07-06 00:11:42 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-07-06 00:12:29 +0200
commitc956a08d2219d623af4ceca644411c8217fe0cbf (patch)
tree0bd2f4ccf36a841a5c5f42a04d12dec429e26499
parent98da4bf7048519b53defcdeef8fa74e271eb60a4 (diff)
downloadnextcloud-server-c956a08d2219d623af4ceca644411c8217fe0cbf.tar.gz
nextcloud-server-c956a08d2219d623af4ceca644411c8217fe0cbf.zip
fixing check if public share is a folder or not
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 0c3d6fb7b25..9462844a82b 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -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);