From cc2b4b37072fdae362e14b24b64e7cb0e0f97b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Sat, 9 Jun 2018 18:33:26 +0200 Subject: [PATCH] Check if DCA is closed or notCreatable --- src/Resources/contao/dca/tl_files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/contao/dca/tl_files.php b/src/Resources/contao/dca/tl_files.php index 25ba81a270..4d93a56835 100644 --- a/src/Resources/contao/dca/tl_files.php +++ b/src/Resources/contao/dca/tl_files.php @@ -586,7 +586,7 @@ public function dragHandle($row, $href, $label, $title, $icon, $attributes) */ public function uploadButton($row, $href, $label, $title, $icon, $attributes) { - if (\Input::get('act') != 'select' && isset($row['type']) && $row['type'] == 'folder') + if (!$GLOBALS['TL_DCA']['tl_files']['config']['closed'] && !$GLOBALS['TL_DCA']['tl_files']['config']['notCreatable'] && \Input::get('act') != 'select' && isset($row['type']) && $row['type'] == 'folder') { return ''.\Image::getHtml('new.svg', $GLOBALS['TL_LANG']['tl_files']['move'][0]).' '; }