Feature #23188 ยป 15127-backendsearch.patch
typo3/backend.php (working copy) | ||
---|---|---|
protected function renderToolbar() {
|
||
// move search to last position
|
||
$search = $this->toolbarItems['backendSearch'];
|
||
unset($this->toolbarItems['backendSearch']);
|
||
$this->toolbarItems['backendSearch'] = $search;
|
||
if (isset($this->toolbarItems['backendSearch'])) {
|
||
$search = $this->toolbarItems['backendSearch'];
|
||
unset($this->toolbarItems['backendSearch']);
|
||
$this->toolbarItems['backendSearch'] = $search;
|
||
}
|
||
$toolbar = '<ul id="typo3-toolbar">';
|
||
$toolbar.= '<li>'.$this->getLoggedInUserLabel().'</li>
|
typo3/classes/class.backendsearchmenu.php (working copy) | ||
---|---|---|
}
|
||
/**
|
||
* checks whether the user has access to this toolbar item
|
||
* Checks whether the user has access to this toolbar item
|
||
*
|
||
* @return boolean true if user has access, false if not
|
||
*/
|
||
public function checkAccess() {
|
||
// Backendsearch module is enabled for everybody
|
||
return true;
|
||
$access = FALSE;
|
||
$tsConfig = $GLOBALS['BE_USER']->getTSConfigVal('options.enableBackendSearch');
|
||
if (!isset($tsConfig) || $tsConfig == 1) {
|
||
$access = TRUE;
|
||
}
|
||
// check if user has access to list module
|
||
if ($access && !$GLOBALS['BE_USER']->check('modules','web_list')) {
|
||
$access = FALSE;
|
||
}
|
||
return $access;
|
||
}
|
||
/**
|