禁用一组用户的所有MediaWiki特殊页面

时间:2014-03-11 17:59:04

标签: mediawiki

我希望删除对名为" Clients"的新组的所有SpecialPages访问权限。任何意见,将不胜感激。提前谢谢。

#Clients group
$wgRevokePermissions['Clients']['userrights'] = true;
$wgRevokePermissions['Clients']['edit'] = true;
$wgRevokePermissions['Clients']['delete'] = true;
$wgRevokePermissions['Clients']['upload'] = true;
$wgRevokePermissions['Clients']['move'] = true;
$wgRevokePermissions['Clients']['createtalk'] = true;
$wgRevokePermissions['Clients']['createaccount'] = true;
$wgRevokePermissions['Clients']['writeapi'] = true;
$wgRevokePermissions['Clients']['createpage'] = true;
$wgRevokePermissions['Clients']['sendemail'] = true;
$wgRevokePermissions['Clients']['editinterface'] = true;

1 个答案:

答案 0 :(得分:0)

扩展程序Lockdown将为您执行此操作。添加扩展名,然后执行以下操作:

$wgSpecialPageLockdown['Statistics'] = array('sysop');
$wgSpecialPageLockdown['Version'] = array('sysop');
$wgSpecialPageLockdown['Export'] = array('sysop');
...

这将是一个很长的列表,随着特殊页面的出现,它会在MediaWiki的版本之间发生一些变化。