Manual:$wgWhitelistEdit/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.5.0</tvar>.</translate> |
<translate> User rights, access control and monitoring</translate>: $wgWhitelistEdit | |
---|---|
If true, users must login to edit. |
|
<translate> Introduced in version:</translate> | 1.1.0 |
<translate> Removed in version:</translate> | 1.5.0 |
<translate> Allowed values:</translate> | (boolean) |
<translate> Default value:</translate> | false |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
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)