Jump to content

手册:$wgRestrictUserPageEditing

From mediawiki.org
This page is a translated version of the page Manual:$wgRestrictUserPageEditing and the translation is 100% complete.
用户权限、访问控制和监视: $wgRestrictUserPageEditing
限制对其他用户的用户页的编辑
引进版本:1.47.0​(Gerrit change 1283109; git #b5524d53)
移除版本:仍在使用
允许的值:(布尔值)
默认值:false

详情

当此参数被启用时,只有拥有editalluserpages权限的用户才能编辑其他用户的用户页:这适用于整个User命名空间(包括子页面),但不适用于用户讨论页。

此功能自UserPageEditProtection 扩展程序接纳。

配置

默认情况下,没有用户组拥有editalluserpages权限。 因此,如果你想使编辑其他用户的用户页仅限管理员执行,做以下的事情:

$wgRestrictUserPageEditing = true;
$wgGroupPermissions['sysop']['editalluserpages'] = true;
如果editalluserpages权限没有特别授予给任何用户组,只有页面的拥有者才能够编辑用户命名空间内的页面。