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

Replace private function renderPortals( $portals ) { // Force the rendering of the following portals if ( !isset( $portals['SEARCH'] ) ) $portals['SEARCH'] = true; if ( !isset( $portals['TOOLBOX'] ) ) $portals['TOOLBOX'] = true; with: private function renderPortals( $portals ) { // Force the rendering of the following portals global $wgUser; if ( !isset( $portals['SEARCH'] ) ) $portals['SEARCH'] = true; if ( !isset( $portals['TOOLBOX'] ) && $wgUser->isLoggedIn ) $portals['TOOLBOX'] = true;