[BUGFIX] Remove wrong storage->isPublic() check in localFolderTree 72/27772/3
authorFrans Saris <franssaris@gmail.com>
Fri, 21 Feb 2014 12:47:45 +0000 (13:47 +0100)
committerSteffen Ritter <info@rs-websystems.de>
Tue, 11 Mar 2014 17:52:20 +0000 (18:52 +0100)
In localFolderTree->ext_isLinkable() is a check for storage->isPublic()
but the isPublic flag has nothing to do with the fact if links
to the files can be created.

This change removes this check.

Resolves: #56183
Releases: 6.2
Change-Id: Ia0e264b46259c0bd284a789a4eab48cf9a9e3b14
Reviewed-on: https://review.typo3.org/27772
Reviewed-by: Wouter Wolters
Reviewed-by: Sebastian Fischer
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
typo3/class.browse_links.php

index ed030a2..0c6e51c 100644 (file)
@@ -225,7 +225,7 @@ class localFolderTree extends \TYPO3\CMS\Backend\Tree\View\FolderTreeView {
         * @todo Define visibility
         */
        public function ext_isLinkable(\TYPO3\CMS\Core\Resource\Folder $folderObject) {
-               if (!$folderObject->getStorage()->isPublic() || strstr($folderObject->getIdentifier(), '_recycler_') || strstr($folderObject->getIdentifier(), '_temp_')) {
+               if (strstr($folderObject->getIdentifier(), '_recycler_') || strstr($folderObject->getIdentifier(), '_temp_')) {
                        return FALSE;
                } else {
                        return TRUE;