
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.
![]() Release status: stable |
|
---|---|
Implementation | User rights |
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. |
MediaWiki | 1.35, 1.39 |
PHP | 7.1+ |
License | GNU General Public License 2.0 or later |
Download | Download extension Git [?]: README |
Parameters
|
|
Added rights
editall
|
|
Hooks used
|
|
Quarterly downloads | 7 (Ranked 163rd) |
Translate the LockAuthor extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
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 place the file(s) in a directory called
LockAuthor
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'LockAuthor' );
file: - Configure as required
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
# <translate nowrap><!--T:14--> Prevent anonymous editing</translate>
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
# <translate nowrap><!--T:15--> Allow regular users to edit pages</translate>
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;
wfLoadExtension( 'LockAuthor' );
// <translate nowrap><!--T:16--> LockAuthor will limit users edit right only to pages created by them</translate>
# <translate nowrap><!--T:17--> Allow sysop to edit all pages</translate>
$wgGroupPermissions['sysop']['editall'] = true;
See also
- Extension:AuthorProtect
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.