Thread:Project:Support desk/Vector - Hide Toolbox for Anonymous Users/reply (13)

Small alternative solution, in case the one above doesn't work for you:

Change

private function renderPortals( $portals ) { // Force the rendering of the following portals if ( !isset( $portals['SEARCH'] ) ) $portals['SEARCH'] = true;

to

private function renderPortals( $portals ) { // Force the rendering of the following portals global $wgUser; if ( !isset( $portals['SEARCH'] ) ) $portals['SEARCH'] = true;

then change

case 'TOOLBOX': $this->renderPortal( 'tb', $this->getToolbox, 'toolbox', 'SkinTemplateToolboxEnd' );

to

case 'TOOLBOX': if ( $wgUser->isLoggedIn ) { $this->renderPortal( 'tb', $this->getToolbox, 'toolbox', 'SkinTemplateToolboxEnd' ); }

This checks the user login state even if the $portals array already has TOOLBOX defined. Best of luck!