Project

General

Profile

Actions

Bug #82467

closed

Cannot disable top bar search

Added by Claus Harup about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2017-09-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In TYPO3\CMS\Backend\Backend\ToolbarItems\LiveSearchToolbarItem:

    public function checkAccess()
    {
        /** @var BackendModuleRepository $backendModuleRepository */
        $backendModuleRepository = GeneralUtility::makeInstance(BackendModuleRepository::class);
        /** @var \TYPO3\CMS\Backend\Domain\Model\Module\BackendModule $listModule */

        // Live search is heavily dependent on the list module and only available when that module is.
        $listModule = $backendModuleRepository->findByModuleName('web_list');
        return $listModule !== null;
    }

..... the return $listModule !== null; returns TRUE no matter if the be_user has access to web_list or not, because $listModule will be of either TRUE or FALSE :-(


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #79974: Global TYPO3 search does not work entirely without list viewClosed2017-02-23

Actions
Actions #1

Updated by Georg Ringer about 7 years ago

  • Is duplicate of Bug #79974: Global TYPO3 search does not work entirely without list view added
Actions #2

Updated by Georg Ringer about 7 years ago

  • Is duplicate of deleted (Bug #79974: Global TYPO3 search does not work entirely without list view)
Actions #3

Updated by Georg Ringer about 7 years ago

  • Related to Bug #79974: Global TYPO3 search does not work entirely without list view added
Actions #4

Updated by Georg Ringer about 7 years ago

  • Status changed from New to Closed

this has been solved with https://review.typo3.org/#/c/51808/ but only for 8+. Feel free to XCLASS that if you need it for 7.

Actions

Also available in: Atom PDF