Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Github mirror of "mediawiki/extensions/LockAuthor" - archived per WIK-1759

Notifications You must be signed in to change notification settings

WikiTeq/mediawiki-extensions-LockAuthor

 
 

Repository files navigation

LockAuthor

Extension prevents users from editing pages they haven't created. The extension uses blocking strategy, so it requires you to manage edit , create permissions granting by yourself.

The common case to use the extension is to grant users with an editright, so everyone will be allowed to create new pages, but the extension will block editing of other pages created by other users.

# 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;

Requirements:

  • MediaWiki 1.35+

Configuration:

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

Rights:

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

About

Github mirror of "mediawiki/extensions/LockAuthor" - archived per WIK-1759

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.7%
  • JavaScript 7.3%