Thread:Project:Support desk/Protect Special pages/reply (7)

That code snippet is for writing your own special page. You need to look at the code on the link I provided or further down on Special pages. Adding something like this to your LocalSettings.php should work, but I haven't tested this:

function disableAllSpecialPages(&$list) { global $wgUser;

if(!$wgUser->isAllowed('editinterface')) { $list = array; } return true; } $wgHooks['SpecialPage_initList'][]='disableAllSpecialPages';