Skip to content
Snippets Groups Projects
Commit c956a08d authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing check if public share is a folder or not

parent 98da4bf7
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ if (isset($path)) { ...@@ -137,7 +137,7 @@ if (isset($path)) {
if (\OCP\App::isEnabled('files_encryption')) { if (\OCP\App::isEnabled('files_encryption')) {
$allowPublicUploadEnabled = false; $allowPublicUploadEnabled = false;
} }
if (isset($file)) { if ($linkItem['item_type'] !== 'folder') {
$allowPublicUploadEnabled = false; $allowPublicUploadEnabled = false;
} }
$tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled); $tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment