[BUGFIX] Remove ElementBrowser::isReadOnlyFolder
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Classes / SelectImage.php
index 3e7e5b3..01c2ce3 100644 (file)
@@ -743,11 +743,9 @@ class SelectImage extends \TYPO3\CMS\Recordlist\Browser\ElementBrowser {
                                // Build the file upload and folder creation form
                                $uploadForm = '';
                                $createFolder = '';
-                               if ($selectedFolder && !$this->isReadOnlyFolder($selectedFolder)) {
+                               if ($selectedFolder) {
                                        $uploadForm = $this->uploadForm($selectedFolder);
-                                       if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->getTSConfigVal('options.createFoldersInEB')) {
-                                               $createFolder = $this->createFolder($selectedFolder);
-                                       }
+                                       $createFolder = $this->createFolder($selectedFolder);
                                }
                                // Insert the upload form on top, if so configured
                                if ($GLOBALS['BE_USER']->getTSConfigVal('options.uploadFieldsInTopOfEB')) {