Extension:UserPageEditProtection/de-formal
UserPageEditProtection Release status: stable |
|
---|---|
Implementation | User rights |
Description | Allows to restrict edit access to user pages |
Author(s) | |
Latest version | 4.1.0 (2020-03-07) |
MediaWiki | 1.29+ |
PHP | 7.0+ |
Database changes | No |
License | No license specified |
Download | README CHANGELOG |
$wgOnlyUserEditUserPage |
|
editalluserpages |
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the UserPageEditProtection extension if it is available at translatewiki.net |
The UserPageEditProtection extension restricts user page edit to the owner of the page (the user) and users assigned to groups that have user page edit access through $wgGroupPermissions. This effectively provides users with a group of protected pages, since this protection extends to any subpages of the user page (i.e., User:Hoggwild/sandbox1). Any user assigned to a group with view rights to user pages can read a user page, but only an authorized user may edit it. This extension has no effect on user talk pages.
Installation
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
UserPageEditProtection/de-formal
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'UserPageEditProtection/de-formal' ); $wgOnlyUserEditUserPage = true;
- Configure user permissions as required
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Configuration
This extension comes with an extra user right called editalluserpages
to allow fine-grained control.
By default it is assigned to the "sysop" user group.
To assign it to another user group, e.g., userpageeditor, add the following code to the "LocalSettings.php" file right after invoking this extension:
$wgGroupPermissions['userpageeditor']['editalluserpages'] = true;
You revoke permission for the "sysop" user group, for example, by adding the following line:
$wgGroupPermissions['sysop']['editalluserpages'] = false;
Siehe auch
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions/de-formal
- User rights extensions/de-formal
- Extensions with manual MediaWiki version
- Extensions with no license specified/de-formal
- Extensions in Wikimedia version control/de-formal
- Extensions which add rights/de-formal
- All extensions/de-formal
- Extensions not in ExtensionJson
- Edit extensions/de-formal
- Page specific user rights extensions/de-formal