Manual:$wgWhitelistEdit/zh
Appearance
此功能已在版本1.5.0中完全移除。 |
用户权限、访问控制和监视: $wgWhitelistEdit | |
---|---|
If true, users must login to edit. |
|
引进版本: | 1.1.0 |
移除版本: | 1.5.0 |
允许的值: | (boolean) |
默认值: | false |
其他设置: 按首字母排序 | 按功能排序 |
Details
If true, users must login to edit.
- It's not 100% safe, there could be a security hole using that one. Use at your own risks.
MediaWiki Version 1.5 and onwards
This setting was deprecated in version 1.5.0, and replaced by $wgGroupPermissions , specifically the 'edit' permission.
To emulate the old effect of setting:
$wgWhitelistEdit = true;
set:
$wgGroupPermissions['*']['edit'] = false;
If $wgWhitelistRead is set, you must also disable the 'read' permission for it to take effect on anonymous users:
$wgWhitelistRead = array( "Main Page", "Special:Userlogin" );
$wgGroupPermissions['*']['read'] = false;
See also
- $wgWhitelistRead (works differently)