Release status: stable
|Description||Prevents users from editing pages they haven't created|
|Compatibility policy||For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.|
|License||GNU General Public License 2.0 or later|
|Translate the LockAuthor extension if it is available at translatewiki.net|
|Issues||Open tasks · Report a bug|
This extension prevents users from editing pages they haven't created and uses a blocking strategy, so it requires you to manage "edit", "create" permissions granting by yourself.
Also, this extension is a drop-in replacement for the EditOwn extension.
A common case for using this extension is to grant users an "edit" right, so everyone will be allowed to create new pages, but this extension will block the editing of other pages created by other users.
This extension was created for the WikiWorks.
- Download and place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'LockAuthor' );
- Configure as required
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
$wgLockAuthorExcludedNamespaces- array of namespaces to be excluded from checks
$wgLockAuthorActions- array of actions to be checked (Default:
[ 'edit', 'create' ])
editall- grant this right to a group to allow bypassing extension's restrictions
# 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;