On Special:Specialpages, Special:Import only shows up if one is a Sysop. How do I make some others listed there act the same? E.g., Special:Ipblocklist. Do I really have to perform open heart surgery, http://www.mediawiki.org/wiki/Manual:Special_pages#Restricting_the_page_to_s... or can I use $wgHooks['SpecialPage_initList'] in LocalSettings.php? Must I use $wgUser->isAllowed('editinterface')?
You can use the Lockdown extension to restrict access to special pages
jidanni@jidanni.org schrieb:
On Special:Specialpages, Special:Import only shows up if one is a Sysop. How do I make some others listed there act the same? E.g., Special:Ipblocklist. Do I really have to perform open heart surgery, http://www.mediawiki.org/wiki/Manual:Special_pages#Restricting_the_page_to_s... or can I use $wgHooks['SpecialPage_initList'] in LocalSettings.php? Must I use $wgUser->isAllowed('editinterface')?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
"DK" == Daniel Kinzler daniel@brightbyte.de writes:
DK> You can use the Lockdown extension to restrict access to special pages
DK> jidanni@jidanni.org schrieb:
On Special:Specialpages, Special:Import only shows up if one is a Sysop. How do I make some others listed there act the same? E.g., Special:Ipblocklist. Do I really have to perform open heart surgery, http://www.mediawiki.org/wiki/Manual:Special_pages#Restricting_the_page_to_s... or can I use $wgHooks['SpecialPage_initList'] in LocalSettings.php? Must I use $wgUser->isAllowed('editinterface')?
Worried about http://www.mediawiki.org/wiki/Extension:Lockdown#Hiding_pages I just instead successfully in LocalSettings.php did: function JidanniLessSpecialPages(&$list){ foreach(array('Uncategorizedimages','Unusedimages','Withoutinterwiki','Upload', 'Newimages','Listfiles','MIMEsearch','FileDuplicateSearch','Filepath', 'Booksources','Mostimages','Tags','Disambiguations' )as $i){unset($list[$i]);} global $wgUser; if(!$wgUser->isAllowed('editinterface')){unset($list[Ipblocklist]);} return true;} $wgHooks['SpecialPage_initList'][]='JidanniLessSpecialPages';
mediawiki-l@lists.wikimedia.org