Extension:LockAuthor
From Linux Web Expert
<translate> This extension is professionally maintained by the WikiTeq team.</translate>
<translate> WikiTeq provides official support for [[<tvar name=1>Special:MyLanguage/Version lifecycle</tvar>|MediaWiki LTS releases only]].</translate> <translate> It may work with other MediaWiki releases.</translate>
LockAuthor 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 | README |
|
|
editall |
|
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 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
- <translate> [[<tvar name=2>Special:ExtensionDistributor/LockAuthor</tvar>|Download]] and move the extracted <tvar name=name>
LockAuthor
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'LockAuthor' );
- Configure 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
$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
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> |
Categories:
- Pages with script errors
- Pages with broken file links
- Extensions by WikiTeq
- Stable extensions
- Extensions without an image
- User rights extensions
- Extensions with long-term support release branches compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- Extensions which add rights
- GetUserPermissionsErrors extensions
- All extensions