Extension:LockAuthor

This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Category:Extensions by WikiTeq Category:Extensions without an imageCategory:GPL licensed extensions
MediaWiki extensions manual
LockAuthor
Release status: stableCategory:Stable extensions
Implementation User rights Category:User rights extensions
Description Prevents users from editing pages they haven't created
Author(s) Vedmakatalk
Maintainer(s) WikiTeq team
Latest version 1.0
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.35, 1.39Category:Extensions with manual MediaWiki version
PHP 7.1+
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
README
  • $wgLockAuthorExcludedNamespaces
  • $wgLockAuthorActions
Quarterly downloads 1 (Ranked 91st)
Translate the LockAuthor extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

LockAuthor is a MediaWiki extension that prevents users from editing pages they have not created.

It does not itself allow users to edit pages that they have created; for that, you will have to make sure the standard "edit" right is correctly set.

This extension is a drop-in replacement for the EditOwn extension, which was archived in 2018.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted LockAuthor folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'LockAuthor' );
    
  • Configure as required
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

  • $wgLockAuthorExcludedNamespaces - array of namespaces to be excluded from checks
  • $wgLockAuthorActions - array of actions to be checked ( Default: [ 'edit', 'create' ])

Rights:

  • editall - grant this right to a group to allow bypassing extension's restrictions

Example setup

# Prevent anonymous editing
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;

# Allow regular users to edit pages
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;

wfLoadExtension( 'LockAuthor' );
// LockAuthor will limit users edit right only to pages created by them

# Allow sysop to edit all pages
$wgGroupPermissions['sysop']['editall'] = true;

See also

Category:All extensions Category:Extensions by WikiTeq Category:Extensions in Wikimedia version control Category:Extensions included in Canasta Category:Extensions included in Miraheze Category:Extensions included in WikiForge Category:Extensions which add rights Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:GPL licensed extensions Category:GetUserPermissionsErrors extensions Category:Stable extensions Category:User rights extensions