Thread:Project:Support desk/Hiding toolbox except for admin and bureaucrat

In skins/Vector.php I can hide toolbox from logged out thus:

if ( $wgUser->isLoggedIn ) { case 'TOOLBOX': if ( $wgUser->isLoggedIn ) { $this->renderPortal( 'tb', $this->getToolbox, 'toolbox', 'SkinTemplateToolboxEnd' ); } but User::isSysop and similar are deprecated.

How would I use the recommended $user->isAllowed to specify the admin and bureaucrat group? I have not managed to find this, sorry.


 * MediaWiki 	1.22.2
 * PHP 	5.3.6-13ubuntu3.10 (apache2handler)
 * MySQL 	5.1.69-0ubuntu0.11.10.1-log