Extension:UserPageEditProtection

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
UserPageEditProtection

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type User rights
DescriptionTemplate:Extension#description Allows to restrict edit access to user pages
Author(s)Template:Extension#username Lisa Ridley, Eric Gingell
Latest versionTemplate:Extension#version 3.0.1 (2016-04-22)
MediaWikiTemplate:Extension#mediawiki 1.17+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README
CHANGELOG
ParametersTemplate:Extension#parameters

$wgOnlyUserEditUserPage

Added rightsTemplate:Extension#rights

editalluserpages

Hooks usedTemplate:Extension#hook
userCan

Translate the UserPageEditProtection extension if it is available at translatewiki.net

Check usage and version matrix.

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[edit]

  • Download and place the file(s) in a directory called UserPageEditProtection in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/UserPageEditProtection/UserPageEditProtection.php";
$wgOnlyUserEditUserPage = true;
  • Configure as requrired
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

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;

See also[edit]